mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
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
This commit is contained in:
parent
56e6a02490
commit
0eb647e71c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue