From 272c082d2a9d595a2b099d89ad85b2486a030da5 Mon Sep 17 00:00:00 2001 From: sighphyre Date: Fri, 8 Dec 2023 16:57:50 +0200 Subject: [PATCH] chore: remove listeners from test that no longer needs them --- client_test.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/client_test.go b/client_test.go index c3e5d1e..c80eb91 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") }