From c3e5308ae20217a8c6d10b8fa9616171922b7db0 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Fri, 13 Dec 2024 15:14:36 +0700 Subject: [PATCH] fixup! Deribit: Add Subscription configuration --- exchanges/deribit/deribit_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exchanges/deribit/deribit_test.go b/exchanges/deribit/deribit_test.go index ff9652b2680..51a505b337f 100644 --- a/exchanges/deribit/deribit_test.go +++ b/exchanges/deribit/deribit_test.go @@ -3280,6 +3280,9 @@ func TestGenerateSubscriptions(t *testing.T) { exp := subscription.List{} for _, s := range d.Features.Subscriptions { for _, a := range d.GetAssetTypes(true) { + if !d.IsAssetWebsocketSupported(a) { + continue + } pairs, err := d.GetEnabledPairs(a) require.NoErrorf(t, err, "GetEnabledPairs %s must not error", a) s := s.Clone() //nolint:govet // Intentional lexical scope shadow