Commit 2f001009 authored by Erin Swenson-Healey's avatar Erin Swenson-Healey
Browse files

loosen tolerance in latency test

parent bb9d55ac
...@@ -631,7 +631,8 @@ func TestStreamsWithLatency(t *testing.T) { ...@@ -631,7 +631,8 @@ func TestStreamsWithLatency(t *testing.T) {
wg.Wait() wg.Wait()
delta := time.Since(checkpoint) delta := time.Since(checkpoint)
if !within(delta, latency, time.Millisecond*50) { tolerance := time.Millisecond * 100
t.Fatalf("Expected write to take ~%s, but took %s", latency.String(), delta.String()) if !within(delta, latency, tolerance) {
t.Fatalf("Expected write to take ~%s (+/- %s), but took %s", latency.String(), tolerance.String(), delta.String())
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment