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:
Gareth Kirwan
2024-07-19 01:40:26 +01:00
committed by GitHub
parent 4f1696fa0b
commit 34d9920c78

View File

@@ -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)