Skip to content

Commit

Permalink
Revert "try to adress #4119"
Browse files Browse the repository at this point in the history
This reverts commit 6aa59a2.
  • Loading branch information
mstoykov committed Dec 16, 2024
1 parent 6aa59a2 commit b1ebbc9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions js/modules/k6/browser/tests/test_browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/sync/errgroup"

"go.k6.io/k6/event"
"go.k6.io/k6/js/modules/k6/browser/chromium"
"go.k6.io/k6/js/modules/k6/browser/common"
"go.k6.io/k6/js/modules/k6/browser/env"
Expand Down Expand Up @@ -90,13 +89,6 @@ func newTestBrowser(tb testing.TB, opts ...func(*testBrowser)) *testBrowser {
tbr.pid = pid
tbr.wsURL = b.WsURL()
tb.Cleanup(func() {
events, ok := tbr.vu.EventsField.Global.(*event.System)
require.True(tb, ok)
waitDone := events.Emit(&event.Event{
Type: event.Exit,
})

require.NoError(tb, waitDone(context.Background()), "error waiting on Exit done")
select {
case <-tbr.vu.Context().Done():
default:
Expand Down

0 comments on commit b1ebbc9

Please sign in to comment.