Skip to content

Commit b1ebbc9

Browse files
committed
Revert "try to adress #4119"
This reverts commit 6aa59a2.
1 parent 6aa59a2 commit b1ebbc9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

js/modules/k6/browser/tests/test_browser.go

-8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"github.com/stretchr/testify/require"
1414
"golang.org/x/sync/errgroup"
1515

16-
"go.k6.io/k6/event"
1716
"go.k6.io/k6/js/modules/k6/browser/chromium"
1817
"go.k6.io/k6/js/modules/k6/browser/common"
1918
"go.k6.io/k6/js/modules/k6/browser/env"
@@ -90,13 +89,6 @@ func newTestBrowser(tb testing.TB, opts ...func(*testBrowser)) *testBrowser {
9089
tbr.pid = pid
9190
tbr.wsURL = b.WsURL()
9291
tb.Cleanup(func() {
93-
events, ok := tbr.vu.EventsField.Global.(*event.System)
94-
require.True(tb, ok)
95-
waitDone := events.Emit(&event.Event{
96-
Type: event.Exit,
97-
})
98-
99-
require.NoError(tb, waitDone(context.Background()), "error waiting on Exit done")
10092
select {
10193
case <-tbr.vu.Context().Done():
10294
default:

0 commit comments

Comments
 (0)