Skip to content
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/httptest: TestServer failures with Unexpected response after close #57144

Open
bcmills opened this issue Dec 7, 2022 · 2 comments
Open
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Dec 7, 2022

#!watchflakes
post <- pkg == "net/http/httptest" && test == "TestServer" && `[Uu]nexpected response after close`

https://build.golang.org/log/8c4d32d4bbf0da2fa412f833d30a774d5e83c9d6:

--- FAIL: TestServer (0.27s)
    --- FAIL: TestServer/NewServer (0.04s)
        --- FAIL: TestServer/NewServer/GetAfterClose (0.01s)
            server_test.go:98: Unexpected response after close: 404 Not Found, map[Content-Length:[19] Content-Type:[text/plain; charset=utf-8] Date:[Tue, 06 Dec 2022 23:47:03 GMT] X-Content-Type-Options:[nosniff]], 404 page not found
FAIL
FAIL	net/http/httptest	0.548s
@bcmills bcmills added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 7, 2022
@bcmills bcmills added this to the Backlog milestone Dec 7, 2022
@bcmills
Copy link
Contributor Author

bcmills commented Dec 7, 2022

(CC @neild)

@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "net/http/httptest" && test == "TestServer" && `[Uu]nexpected response after close`
2022-12-06 22:07 openbsd-arm64-jsing go@e535d677 net/http/httptest.TestServer (log)
--- FAIL: TestServer (0.27s)
    --- FAIL: TestServer/NewServer (0.04s)
        --- FAIL: TestServer/NewServer/GetAfterClose (0.01s)
            server_test.go:98: Unexpected response after close: 404 Not Found, map[Content-Length:[19] Content-Type:[text/plain; charset=utf-8] Date:[Tue, 06 Dec 2022 23:47:03 GMT] X-Content-Type-Options:[nosniff]], 404 page not found

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: No status
Development

No branches or pull requests

2 participants