mirror of
https://github.com/golang/go
synced 2024-11-21 22:04:39 -07: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
@ -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 New Issue
Block a user