Commit 0eb647e7 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

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
parent 56e6a024
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment