Skip to content

Commit c1b012f

Browse files
committed
TestShadowDOMAndDocumentFragment: do not reuse testbrowser for stability
1 parent ff23a82 commit c1b012f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

internal/js/modules/k6/browser/tests/page_test.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,14 +1764,11 @@ func TestPageIsHidden(t *testing.T) {
17641764
}
17651765
}
17661766

1767-
func TestShadowDOMAndDocumentFragment(t *testing.T) { //nolint:tparallel
1767+
func TestShadowDOMAndDocumentFragment(t *testing.T) {
17681768
t.Parallel()
17691769
if runtime.GOOS == "windows" {
1770-
t.Skip() // timeouts
1770+
t.Skip("windows timeouts on these tests")
17711771
}
1772-
1773-
tb := newTestBrowser(t, withFileServer())
1774-
17751772
tests := []struct {
17761773
name string
17771774
selector string
@@ -1798,8 +1795,10 @@ func TestShadowDOMAndDocumentFragment(t *testing.T) { //nolint:tparallel
17981795
},
17991796
}
18001797

1801-
for _, tt := range tests { //nolint:paralleltest
1798+
for _, tt := range tests {
18021799
t.Run(tt.name, func(t *testing.T) {
1800+
t.Parallel()
1801+
tb := newTestBrowser(t, withFileServer())
18031802
tb.vu.ActivateVU()
18041803
tb.vu.StartIteration(t)
18051804
defer tb.vu.EndIteration(t)

0 commit comments

Comments
 (0)