mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue