From b562e46c5573e3cdb04301afc65962a6321c366e Mon Sep 17 00:00:00 2001 From: edwin Date: Tue, 11 Jun 2024 17:35:14 +0800 Subject: [PATCH] pkg/exchange: adjust the time since of unit test --- pkg/exchange/bitget/exchange_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/exchange/bitget/exchange_test.go b/pkg/exchange/bitget/exchange_test.go index efacc667e6..3d5a5763b9 100644 --- a/pkg/exchange/bitget/exchange_test.go +++ b/pkg/exchange/bitget/exchange_test.go @@ -1116,7 +1116,7 @@ func TestExchange_QueryClosedOrders(t *testing.T) { assert = assert.New(t) ex = New("key", "secret", "passphrase") expBtcSymbol = "BTCUSDT" - since = types.NewMillisecondTimestampFromInt(1709645944272).Time() + since = time.Now().Add(-24 * time.Hour) until = since.Add(time.Hour) lastOrderId = uint64(0) url = "/api/v2/spot/trade/history-orders" @@ -1417,7 +1417,7 @@ func TestExchange_QueryTrades(t *testing.T) { assert = assert.New(t) ex = New("key", "secret", "passphrase") expApeSymbol = "APEUSDT" - since = types.NewMillisecondTimestampFromInt(1709645944272).Time() + since = time.Now().Add(-24 * time.Hour) until = since.Add(time.Hour) options = &types.TradeQueryOptions{ StartTime: &since,