Skip to content

Commit 6eee9ed

Browse files
committed
time: fix build
Allow less precise timing on build machines. TBR=r CC=golang-dev https://golang.org/cl/3391043
1 parent 42cfe48 commit 6eee9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pkg/time/sleep_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ func TestAfterQueuing(t *testing.T) {
8888
}
8989
ns := r.t - t0
9090
target := int64(slot * Delta)
91-
slop := int64(Delta) / 10
91+
slop := int64(Delta) / 4
9292
if ns < target-slop || ns > target+slop {
93-
t.Fatalf("after queue slot %d arrived at %g, expected %g", slot, float64(ns), float64(target))
93+
t.Fatalf("after queue slot %d arrived at %g, expected [%g,%g]", slot, float64(ns), float64(target-slop), float64(target+slop))
9494
}
9595
}
9696
}

0 commit comments

Comments
 (0)