]> Cypherpunks repositories - gostls13.git/commit
net/http/fcgi: fix test
authorDmitry Vyukov <dvyukov@google.com>
Sun, 1 Mar 2015 13:23:55 +0000 (16:23 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 2 Mar 2015 06:59:29 +0000 (06:59 +0000)
commit04a3a74456fc32ff5a5197b4cb10640f270d19e4
tree43bfbb86fd344ea0f2e94b7171022a092d8ff6b0
parentdd82d5e72867392d2ca4656685c6af0945c5f83d
net/http/fcgi: fix test

Currently the test fails if run more than once:

$ go test -v -run=TestChildServeCleansUp -cpu=1,1 net/http/fcgi
=== RUN TestChildServeCleansUp
--- PASS: TestChildServeCleansUp (0.00s)
=== RUN TestChildServeCleansUp
fatal error: all goroutines are asleep - deadlock!

The problem is that the writer mutates test input data,
so it is wrong on the second execution.

Change-Id: I4ca54dd2926c6986b2908023ac65e5e65630ed26
Reviewed-on: https://go-review.googlesource.com/6383
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/fcgi/fcgi_test.go