From: Russ Cox Date: Mon, 6 Dec 2010 21:22:32 +0000 (-0500) Subject: time: fix build X-Git-Tag: weekly.2010-12-08~36 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6eee9ed507a6de8fe93c1d1b8372a8bd85547e6f;p=gostls13.git time: fix build Allow less precise timing on build machines. TBR=r CC=golang-dev https://golang.org/cl/3391043 --- diff --git a/src/pkg/time/sleep_test.go b/src/pkg/time/sleep_test.go index 9fd38d18d1..e70b84e97c 100644 --- a/src/pkg/time/sleep_test.go +++ b/src/pkg/time/sleep_test.go @@ -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)) } } }