From 0eb647e71c4b67db53181b1aff7755adafda0838 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 30 Jan 2012 20:17:34 -0800 Subject: [PATCH] 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 --- test/map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1