From: Brad Fitzpatrick Date: Tue, 31 Jan 2012 04:17:34 +0000 (-0800) Subject: test: attempt at making a test more robust X-Git-Tag: weekly.2012-02-07~195 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0eb647e71c4b67db53181b1aff7755adafda0838;p=gostls13.git test: attempt at making a test more robust A current theory is that this test is too fast for the time resolution on the VMs where our builders run. R=rsc CC=golang-dev https://golang.org/cl/5581056 --- diff --git a/test/map.go b/test/map.go index 821f02ee0a..a92586ff4a 100644 --- a/test/map.go +++ b/test/map.go @@ -667,7 +667,7 @@ func testnan() { return time.Since(t0) } - n := 30000 // 0.02 seconds on a MacBook Air + n := 60000 // 0.04 seconds on a MacBook Air t1 := t(n) t2 := t(2 * n) if t2 > 3*t1 { // should be 2x (linear); allow up to 3x