Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Aug 2, 2023
1 parent 1808083 commit 8b03fb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netpoll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ func TestCloseConnWhenOnConnect(t *testing.T) {
go func() {
defer wg.Done()
var conn, err = DialConnection(network, address, time.Second)
MustNil(t, err)
if err != nil {
return
}
_, err = conn.Reader().Next(1)
Assert(t, errors.Is(err, ErrEOF))
err = conn.Close()
Expand Down

0 comments on commit 8b03fb4

Please sign in to comment.