mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
pkg/exchange: adjust the time since of unit test
This commit is contained in:
parent
9adedc186f
commit
b562e46c55
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user