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)