From e7d10cde38db1efee98613a6959a845110b861ec Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Fri, 16 Feb 2024 10:36:07 +0700 Subject: [PATCH] fixup! Websocket: Make WebsocketNotEnabled a real error --- exchanges/stream/websocket_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exchanges/stream/websocket_test.go b/exchanges/stream/websocket_test.go index 805b4ed5d18..b7a8cc36391 100644 --- a/exchanges/stream/websocket_test.go +++ b/exchanges/stream/websocket_test.go @@ -239,14 +239,14 @@ func TestConnectionMessageErrors(t *testing.T) { ws.TrafficAlert <- struct{}{} - c := func(ta *assert.CollectT) { + c := func(tb *assert.CollectT) { select { case v := <-ws.ToRoutine: switch err := v.(type) { case *websocket.CloseError: - assert.Equal(t, "SpecialText", err.Text, "Should get correct Close Error") + assert.Equal(tb, "SpecialText", err.Text, "Should get correct Close Error") case error: - assert.ErrorIs(t, err, errDastardlyReason, "Should get the correct error") + assert.ErrorIs(tb, err, errDastardlyReason, "Should get the correct error") } default: }