Skip to content

net/http: test spams stderr #24831

Closed
Closed
@bradfitz

Description

@bradfitz

Running go test on a package should be quiet and not spam to stderr.

But:

$ go test -short
2018/04/12 17:09:17 http: WriteHeader called with X-Content-Type-Options:nosniff but no Content-Type
2018/04/12 17:09:17 http: TLS handshake error from 127.0.0.1:55706: remote error: tls: bad certificate
PASS
ok      net/http        4.034s

The first log line was added in 1a677e0 (/cc mikesamuel).

I haven't looked into the second.

Help fixing these would be great. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions