-
Notifications
You must be signed in to change notification settings - Fork 17.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/http: TestHandlerPanic hangs #4830
Labels
Milestone
Comments
I can't reproduce this. I looked at the test code and it seems fine, too. There's a 5 second timeout, which seems like tons of time. But maybe try making it longer? I get an unrelated crash after running this for awhile, though: === RUN TestHandlerPanic --- PASS: TestHandlerPanic (0.00 seconds) === RUN TestHandlerPanic-2 --- PASS: TestHandlerPanic-2 (0.00 seconds) === RUN TestHandlerPanic-3 --- PASS: TestHandlerPanic-3 (0.00 seconds) === RUN TestHandlerPanic-4 --- PASS: TestHandlerPanic-4 (0.00 seconds) === RUN TestHandlerPanic-5 --- PASS: TestHandlerPanic-5 (0.00 seconds) === RUN TestHandlerPanic-6 --- PASS: TestHandlerPanic-6 (0.00 seconds) panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: address already in use [recovered] panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: address already in use goroutine 38 [running]: testing.func·004(0x7fba8c9bffa8, 0x7fba8c9bf100) /usr/local/google/home/bradfitz/go/src/pkg/testing/testing.go:310 +0xb3 net/http/httptest.newLocalListener(0x1, 0x405db2) /usr/local/google/home/bradfitz/go/src/pkg/net/http/httptest/server.go:68 +0x36b net/http/httptest.NewUnstartedServer(0xc200000c30, 0xc20012ab90, 0xc20012abc0, 0xc20012ab90, 0x486d0e, ...) /usr/local/google/home/bradfitz/go/src/pkg/net/http/httptest/server.go:96 +0x1c net/http/httptest.NewServer(0xc200000c30, 0xc20012ab90, 0xc2000b4778, 0xc2000b4780, 0xc20009dd20, ...) /usr/local/google/home/bradfitz/go/src/pkg/net/http/httptest/server.go:83 +0x2f net/http_test.testHandlerPanic(0xc200128f30, 0x772100, 0x62faf8, 0xc20009dd10, 0xc20009dd10, ...) /usr/local/google/home/bradfitz/go/src/pkg/net/http/serve_test.go:1037 +0x18e net/http_test.TestHandlerPanic(0xc200128f30, 0xc235ac4201) /usr/local/google/home/bradfitz/go/src/pkg/net/http/serve_test.go:1000 +0x62 testing.tRunner(0xc200128f30, 0x913c88, 0x0, 0x0) /usr/local/google/home/bradfitz/go/src/pkg/testing/testing.go:315 +0x6c created by testing.RunTests /usr/local/google/home/bradfitz/go/src/pkg/testing/testing.go:430 +0x875 |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: