Skip to content

Commit

Permalink
pkg/exchange: adjust the time since of unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bailantaotao committed Jun 11, 2024
1 parent 9adedc1 commit b562e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/exchange/bitget/exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b562e46

Please sign in to comment.