diff --git a/exchanges/bitmex/bitmex_test.go b/exchanges/bitmex/bitmex_test.go index 64ff57c5b65..e2214dfd8a8 100644 --- a/exchanges/bitmex/bitmex_test.go +++ b/exchanges/bitmex/bitmex_test.go @@ -1363,6 +1363,9 @@ func TestGetCurrencyTradeURL(t *testing.T) { func TestGenerateSubscriptions(t *testing.T) { t.Parallel() + b := new(Bitmex) + require.NoError(t, testexch.Setup(b), "Test instance Setup must not error") + p := currency.Pairs{ currency.NewPair(currency.ETH, currency.USD), currency.NewPair(currency.BCH, currency.NewCode("Z19")), @@ -1384,6 +1387,7 @@ func TestGenerateSubscriptions(t *testing.T) { {QualifiedChannel: bitmexWSPosition + ":" + p[0].String(), Channel: bitmexWSPosition, Authenticated: true, Asset: asset.PerpetualContract, Pairs: p[:1]}, } + b.Websocket.SetCanUseAuthenticatedEndpoints(true) subs, err := b.generateSubscriptions() require.NoError(t, err, "generateSubscriptions must not error") testsubs.EqualLists(t, exp, subs)