From 0150cbb66dce8935ef333413118e053249e31596 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Fri, 26 Jul 2024 15:14:57 +0700 Subject: [PATCH] WIP: Missing data fields for test --- exchanges/bitfinex/bitfinex_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/exchanges/bitfinex/bitfinex_test.go b/exchanges/bitfinex/bitfinex_test.go index 06f95756984..61c2551fff3 100644 --- a/exchanges/bitfinex/bitfinex_test.go +++ b/exchanges/bitfinex/bitfinex_test.go @@ -1150,11 +1150,12 @@ func TestGenerateSubscriptions(t *testing.T) { pairs, err := b.GetEnabledPairs(a) require.NoErrorf(t, err, "GetEnabledPairs %s must not error", a) for _, p := range pairs { + ps := currency.Pairs{p} exp = append(exp, - &subscription.Subscription{Channel: subscription.TickerChannel, Asset: a, Pairs: currency.Pairs{p}}, - &subscription.Subscription{Channel: subscription.CandlesChannel, Asset: a, Pairs: currency.Pairs{p}, Interval: kline.OneMin}, - &subscription.Subscription{Channel: subscription.OrderbookChannel, Asset: a, Pairs: currency.Pairs{p}, Levels: 100}, - &subscription.Subscription{Channel: subscription.AllTradesChannel, Asset: a, Pairs: currency.Pairs{p}}, + &subscription.Subscription{QualifiedChannel: subscription.TickerChannel, Channel: subscription.TickerChannel, Asset: a, Pairs: ps}, + &subscription.Subscription{QualifiedChannel: subscription.CandlesChannel, Channel: subscription.CandlesChannel, Asset: a, Pairs: ps, Interval: kline.OneMin}, + &subscription.Subscription{QualifiedChannel: "book", Channel: subscription.OrderbookChannel, Asset: a, Pairs: ps, Levels: 100}, + &subscription.Subscription{QualifiedChannel: "trades", Channel: subscription.AllTradesChannel, Asset: a, Pairs: ps}, ) } }