From 2dc74a56be6ca5ccfb8aea2de6596ca9d8f9027c Mon Sep 17 00:00:00 2001 From: sighphyre Date: Fri, 8 Dec 2023 16:55:39 +0200 Subject: [PATCH] remove channel listeners from silly test --- client_test.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/client_test.go b/client_test.go index f01dd54..cf23d03 100644 --- a/client_test.go +++ b/client_test.go @@ -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") }