Commit 6eee9ed5 authored by Russ Cox's avatar Russ Cox

time: fix build

Allow less precise timing on build machines.

TBR=r
CC=golang-dev
https://golang.org/cl/3391043
parent 42cfe48f
......@@ -88,9 +88,9 @@ func TestAfterQueuing(t *testing.T) {
}
ns := r.t - t0
target := int64(slot * Delta)
slop := int64(Delta) / 10
slop := int64(Delta) / 4
if ns < target-slop || ns > target+slop {
t.Fatalf("after queue slot %d arrived at %g, expected %g", slot, float64(ns), float64(target))
t.Fatalf("after queue slot %d arrived at %g, expected [%g,%g]", slot, float64(ns), float64(target-slop), float64(target+slop))
}
}
}
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