Descriptiontest: make maplinear more robust
The test just doubled a certain number of times
and then gave up. On a mostly fast but occasionally
slow machine this may never make the test run
long enough to see the linear growth.
Change test to keep doubling until the first round
takes at least a full second, to reduce the effect of
occasional scheduling or other jitter.
The failure we saw had a time for the first round
of around 100ms.
Note that this test still passes once it sees a linear
effect, even with a very small total time.
The timeout here only applies to how long the execution
must be to support a reported failure.
Patch Set 1 #Patch Set 2 : diff -r 048e2219734a48af10087b48d08b00b8433ebad3 https://code.google.com/p/go/ #Patch Set 3 : diff -r 048e2219734a48af10087b48d08b00b8433ebad3 https://code.google.com/p/go/ #Patch Set 4 : diff -r 3a0dc093920326291d9c621ccb488d6f55d1159a https://code.google.com/p/go/ #MessagesTotal messages: 3
|