From ea7169d766089c0a5a9ad2ba633d9a338236caaa Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 24 Mar 2021 15:00:35 +0100 Subject: [PATCH] itest: increase order events delta 100 ms was not enough and would cause the test to flake. Increase to 500 ms. --- itest/test_harness.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itest/test_harness.go b/itest/test_harness.go index 0222f0067..569e3460a 100644 --- a/itest/test_harness.go +++ b/itest/test_harness.go @@ -738,10 +738,10 @@ func assertOrderEvents(t *harnessTest, trader *traderHarness, nonce []byte, } require.NotNil(t.t, rpcOrder) - // Make sure the creation timestamp is within 100 milliseconds of the + // Make sure the creation timestamp is within 500 milliseconds of the // time that was passed in. expectedTs := uint64(creationTs.UnixNano()) - maxDelta := float64(100 * time.Millisecond) + maxDelta := float64(500 * time.Millisecond) require.InDelta(t.t, expectedTs, rpcOrder.CreationTimestampNs, maxDelta) // Assert we have the right number of events in verbose mode.