From b3c0268a8978b5f8cc6d997612e8a0d5aa9efad1 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Fri, 16 Aug 2024 09:25:00 +0700 Subject: [PATCH] fixup! fixup! Kraken: Handle Errors field in futures response --- exchanges/kraken/kraken_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exchanges/kraken/kraken_test.go b/exchanges/kraken/kraken_test.go index 0a3d97856fc..cf3b9154d91 100644 --- a/exchanges/kraken/kraken_test.go +++ b/exchanges/kraken/kraken_test.go @@ -2082,8 +2082,9 @@ func TestGetCharts(t *testing.T) { require.NoError(t, err) cp.Delimiter = "_" resp, err := k.GetFuturesCharts(context.Background(), "1d", "spot", cp, time.Time{}, time.Time{}) - + require.NoError(t, err) require.NotEmpty(t, resp.Candles) + end := time.UnixMilli(resp.Candles[0].Time) _, err = k.GetFuturesCharts(context.Background(), "1d", "spot", cp, end.Add(-time.Hour*24*7), end) require.NoError(t, err)