Skip to content

Commit

Permalink
remove channel listeners from silly test
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Dec 8, 2023
1 parent c33d53a commit 2dc74a5
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 2dc74a5

Please sign in to comment.