Closed
Description
The new regression test added for #34439 just flaked twice on the darwin-arm64-corellium
builder:
- https://build.golang.org/log/ef6dce6843cd8802608f9895eeb21e79807e22a4
- https://build.golang.org/log/864f7b408c2ad4f67cb08581c29e926a71471138
--- FAIL: TestTimeoutHandlerAndFlusher (0.14s)
serve_test.go:6193: Status code mismatch
got: 418
want: 503
serve_test.go:6198: Body mismatch
got: "line1\nline2\n"
want: "TIMED OUT\n"
FAIL
FAIL net/http 9.476s
The time.Sleep(timeout * 2)
seems suspect,¹ although I'm not certain that's the root cause of the flakes.
(Also, I have no idea why the test server thinks it is a teapot. 😅)
¹ https://testing.googleblog.com/2008/08/tott-sleeping-synchronization.html
CC @bradfitz