mirror of
https://github.com/golang/go
synced 2024-11-25 22:17:58 -07:00
time: fix build
Allow less precise timing on build machines. TBR=r CC=golang-dev https://golang.org/cl/3391043
This commit is contained in:
parent
42cfe48ffc
commit
6eee9ed507
@ -88,9 +88,9 @@ func TestAfterQueuing(t *testing.T) {
|
|||||||
}
|
}
|
||||||
ns := r.t - t0
|
ns := r.t - t0
|
||||||
target := int64(slot * Delta)
|
target := int64(slot * Delta)
|
||||||
slop := int64(Delta) / 10
|
slop := int64(Delta) / 4
|
||||||
if ns < target-slop || ns > target+slop {
|
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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user