diff --git a/exchanges/huobi/huobi_test.go b/exchanges/huobi/huobi_test.go index 7206169cc6b..b0a51bd72ef 100644 --- a/exchanges/huobi/huobi_test.go +++ b/exchanges/huobi/huobi_test.go @@ -2939,6 +2939,9 @@ func TestGenerateSubscriptions(t *testing.T) { require.NoError(t, err, "generateSubscriptions must not error") exp := subscription.List{} for _, s := range h.Features.Subscriptions { + if s.Authenticated && !h.Websocket.CanUseAuthenticatedEndpoints() { + continue + } for _, a := range h.GetAssetTypes(true) { if s.Asset != asset.All && s.Asset != a { continue