mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
Okx: Fix TestGetBlockTrade transient fail (#1583)
Last block trade has fallen outside 7 days many times now. Switching to within 90 days, which appears safe.
This commit is contained in:
@@ -205,7 +205,7 @@ func TestGetBlockTrade(t *testing.T) {
|
||||
assert.Positive(t, trade.Price, "Price should have a positive value")
|
||||
assert.Positive(t, trade.Size, "Size should have a positive value")
|
||||
assert.Contains(t, []order.Side{order.Buy, order.Sell}, trade.Side, "Side should be a side")
|
||||
assert.WithinRange(t, trade.Timestamp.Time(), time.Now().Add(time.Hour*-24*7), time.Now(), "Timestamp should be within last 7 days")
|
||||
assert.WithinRange(t, trade.Timestamp.Time(), time.Now().Add(time.Hour*-24*90), time.Now(), "Timestamp should be within last 90 days")
|
||||
}
|
||||
|
||||
testexch.UpdatePairsOnce(t, ok)
|
||||
|
||||
Reference in New Issue
Block a user