Skip to content

Commit

Permalink
itest: increase order events delta
Browse files Browse the repository at this point in the history
100 ms was not enough and would cause the test to flake. Increase to 500 ms.
  • Loading branch information
halseth committed Mar 26, 2021
1 parent aa2d01d commit ea7169d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itest/test_harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ea7169d

Please sign in to comment.