diff --git a/exchanges/stream/websocket_test.go b/exchanges/stream/websocket_test.go index faff3d7ce48..bf2a02fec15 100644 --- a/exchanges/stream/websocket_test.go +++ b/exchanges/stream/websocket_test.go @@ -554,7 +554,7 @@ func TestResubscribe(t *testing.T) { assert.ErrorIs(t, err, errInvalidMaxSubscriptions, "Invalid MaxWebsocketSubscriptionsPerConnection should error") err = ws.Setup(defaultSetup) - assert.NoError(t, ws.Setup(defaultSetup), "WS Setup should not error") + assert.NoError(t, err, "WS Setup should not error") fnSub := func(subs []ChannelSubscription) error { ws.AddSuccessfulSubscriptions(subs...)