Commit 649f771b authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

net/rpc: fix spurious panic in test

The panic happens if -benchtime flag is specified:
go test -bench=EndToEndAsyncHTTP -benchtime=120

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5677075
parent b8f46564
......@@ -387,12 +387,12 @@ func (WriteFailCodec) WriteRequest(*Request, interface{}) error {
}
func (WriteFailCodec) ReadResponseHeader(*Response) error {
time.Sleep(120 * time.Second)
select {}
panic("unreachable")
}
func (WriteFailCodec) ReadResponseBody(interface{}) error {
time.Sleep(120 * time.Second)
select {}
panic("unreachable")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment