Skip to content

Commit

Permalink
fix: address race condition in socks5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
amircybersec committed Sep 6, 2024
1 parent 19f5184 commit d0cbce1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion transport/socks5/stream_dialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ func TestConnectWithoutAuth(t *testing.T) {

go func() {
err := server.Serve(listener)
t.Log("server is listening...")
if !errors.Is(err, net.ErrClosed) && err != nil {
require.NoError(t, err) // Assert no error if it's not the expected close error
}
Expand Down

0 comments on commit d0cbce1

Please sign in to comment.