From 34d9920c7804aed1750ef2257a334d7f08e954c6 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Fri, 19 Jul 2024 01:40:26 +0100 Subject: [PATCH] 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. --- exchanges/okx/okx_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchanges/okx/okx_test.go b/exchanges/okx/okx_test.go index 20b05cd6..a3521002 100644 --- a/exchanges/okx/okx_test.go +++ b/exchanges/okx/okx_test.go @@ -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)