|
Minux Ma |
at Nov 20, 2012 at 10:17 am
|
⇧ |
| |
Reviewers: albert.strasheim, bradfitz,
Message:
Hello
fullung@gmail.com, bradfitz@golang.org (cc:
golang-dev@googlegroups.com),
I'd like you to review this change to
https://code.google.com/p/goDescription:
net/http: fix TestChunkReaderAllocs failure when GOMAXPROCS > 1
Please review this at
http://codereview.appspot.com/6846081/Affected files:
M src/pkg/net/http/chunked_test.go
Index: src/pkg/net/http/chunked_test.go
===================================================================
--- a/src/pkg/net/http/chunked_test.go
+++ b/src/pkg/net/http/chunked_test.go
@@ -42,6 +42,8 @@
}
func TestChunkReaderAllocs(t *testing.T) {
+ // temporarily set GOMAXPROCS to 1 as we are testing memory allocations
+ defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1))
var buf bytes.Buffer
w := newChunkedWriter(&buf)
a, b, c := []byte("aaaaaa"), []byte("bbbbbbbbbbbb"),
[]byte("cccccccccccccccccccccccc")