Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 99b3008

Browse files
authored
fix: TestDial/EOF_on_Close listen race (#345)
1 parent 84ab0d7 commit 99b3008

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wsnet/dial_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ func TestDial(t *testing.T) {
133133
t.Error(err)
134134
return
135135
}
136+
go func() {
137+
_, _ = listener.Accept()
138+
}()
136139
connectAddr, listenAddr := createDumbBroker(t)
137140
srv, err := Listen(context.Background(), listenAddr)
138141
if err != nil {

0 commit comments

Comments
 (0)