]> Cypherpunks repositories - gostls13.git/commit
sync: give finalizers more time in TestPoolGC
authorRuss Cox <rsc@golang.org>
Fri, 7 Mar 2014 21:08:12 +0000 (16:08 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 7 Mar 2014 21:08:12 +0000 (16:08 -0500)
commite721778f3ed43b5ec6beda5e3f2fa93eda38f352
tree5525dd8ceb4214ff0e154d22589d35c4e4e6d248
parent3d869c6e0c26503f835b4c2694af45e64991c4cd
sync: give finalizers more time in TestPoolGC

If we report a leak, make sure we've waited long enough to be sure.
The new sleep regimen waits 1.05 seconds before failing; the old
one waited 0.005 seconds.

(The single linux/amd64 failure in this test feels more like a
timing problem than a leak. I don't want to spend time on it unless
we're sure.)

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/72630043
src/pkg/sync/pool_test.go