Skip to content

Commit

Permalink
time: fix build
Browse files Browse the repository at this point in the history
Allow less precise timing on build machines.

TBR=r
CC=golang-dev
https://golang.org/cl/3391043
  • Loading branch information
rsc committed Dec 6, 2010
1 parent 42cfe48 commit 6eee9ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/time/sleep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}

0 comments on commit 6eee9ed

Please sign in to comment.