diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-11-11 17:14:02 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-11-11 17:38:10 +0000 |
| commit | 238247eb59cdddeedaa5c5db67734df2cd1049ab (patch) | |
| tree | 6947f209ce27689c1b67754bdcfcd7bbec828b20 /src/net/http/server.go | |
| parent | 866e01457f69b58b31ccb95f223aac80e1285332 (diff) | |
| download | go-238247eb59cdddeedaa5c5db67734df2cd1049ab.tar.xz | |
net/http: deflake new TestInterruptWithPanic_h2
TestInterruptWithPanic_h2 was added yesterday in
https://golang.org/cl/33099 and https://golang.org/cl/33103
Deflake it. The http2 server sends an error before logging.
Rather than reorder the http2 code to log before writing the RSTStream
frame, just loop for a bit waiting for the condition we're
expecting.
This goes from 2 in 500 flakes for me to unreproducible.
Change-Id: I062866a5977f50c820965aaf83882ddd7bf98f91
Reviewed-on: https://go-review.googlesource.com/33140
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/net/http/server.go')
0 files changed, 0 insertions, 0 deletions
