]> Cypherpunks repositories - gostls13.git/commitdiff
test: raise the allocation threshold for chan/select2.go failure
authorCarl Shapiro <cshapiro@google.com>
Fri, 12 Apr 2013 22:58:34 +0000 (15:58 -0700)
committerCarl Shapiro <cshapiro@google.com>
Fri, 12 Apr 2013 22:58:34 +0000 (15:58 -0700)
Updates #5282

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8718045

test/chan/select2.go

index 40bc357b5d715e652be55692bc1d70f2d0939bd1..4a08139126192f87e72a39fed7ceb41a6ab90112 100644 (file)
@@ -47,7 +47,7 @@ func main() {
        runtime.GC()
        runtime.ReadMemStats(memstats)
 
-       if memstats.Alloc-alloc > 1e5 {
+       if memstats.Alloc-alloc > 1.1e5 {
                println("BUG: too much memory for 100,000 selects:", memstats.Alloc-alloc)
        }
 }