Skip to content

Commit

Permalink
chore: remove listeners from test that no longer needs them
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Dec 8, 2023
1 parent 6e6a975 commit 272c082
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,6 @@ func TestClientWithoutListener(t *testing.T) {
)
assert.Nil(err, "client should not return an error")

go func() {
for {
select {
case e := <-client.Errors():
t.Errorf("Unexpected error: %v", e)
return
case w := <-client.Warnings():
t.Errorf("Unexpected warning: %v", w)
return
case <-client.Count():
case <-client.Sent():
}
}
}()
<-client.Registered()
<-client.Ready()
client.Close()
assert.True(gock.IsDone(), "there should be no more mocks")
}
Expand Down

0 comments on commit 272c082

Please sign in to comment.