Skip to content

net/http/httptest: TestServer failures with Unexpected response after close #57144

@bcmills

Description

@bcmills
#!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

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions