Skip to content

Commit

Permalink
minor change to the subscirption test
Browse files Browse the repository at this point in the history
  • Loading branch information
hozan23 committed Jun 23, 2024
1 parent 6cecfad commit f618af1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jsonrpc/client/subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ func TestSubscriptionFullQueue(t *testing.T) {
b, err := json.Marshal(i)
assert.Nil(t, err)
err = sub.notify(b)
if i <= bufSize {
assert.Nil(t, err)
} else {
if i > bufSize {
if assert.Error(t, err) {
assert.ErrorIs(t, err, queueIsFullErr)
}
Expand Down

0 comments on commit f618af1

Please sign in to comment.