Skip to content

Commit

Permalink
fixup! Kucoin: Add Subscription batching
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jul 15, 2024
1 parent c969696 commit b45bf06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exchanges/kucoin/kucoin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2080,6 +2080,10 @@ func TestGenerateOtherSubscriptions(t *testing.T) {
got, err := ku.generateSubscriptions()
require.NoError(t, err, "generateSubscriptions should not error")
require.Len(t, got, 1, "Should generate just one sub")
assert.NotEmpty(t, got[0].QualifiedChannel, "Qualified Channel should not be empty")
if got[0].Channel == subscription.CandlesChannel {
assert.Equal(t, "/market/candles:BTC-USDT_4hour,ETH-BTC_4hour,ETH-USDT_4hour,LTC-USDT_4hour", got[0].QualifiedChannel, "QualifiedChannel should be correct")
}
}
}

Expand Down

0 comments on commit b45bf06

Please sign in to comment.