Skip to content

Commit

Permalink
chore: assert with specific error
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Jul 20, 2023
1 parent 8b78aff commit e7a6e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ func TestMultiInstLoggerRace(t *testing.T) {
return err
})

assert.Error(t, g.Wait())
assert.ErrorIs(t, g.Wait(), gerr.ErrUnsupportedProtocol)
}

var errIncompletePacket = errors.New("incomplete packet")
Expand Down

0 comments on commit e7a6e84

Please sign in to comment.