From c31f3620c54321ea1cbe798c43a30b93ebf83b6d Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Mon, 22 Jul 2024 12:15:47 +0700 Subject: [PATCH] fixup! Bitmex: Sub Templating --- exchanges/bitmex/bitmex_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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)