Skip to content

testing: add func AllocsPerRun(func()) #4461

@gopherbot

Description

@gopherbot

by jgrahamc:

Which operating system are you using?

FreeBSD amd64

Which version are you using?  (run 'go version')

go version devel +88e4ba173900

Please provide any additional information below.

When running ./all.bash to rebuild go after an hg sync I get the following test failures:

--- FAIL: TestChunkReaderAllocs (0.00 seconds)
chunked_test.go:67:             4 mallocs; want <= 1
FAIL
FAIL    net/http        2.417s
ok      net/http/cgi    0.437s
ok      net/http/fcgi   0.012s
ok      net/http/httptest       0.012s
--- FAIL: TestChunkReaderAllocs (0.00 seconds)
chunked_test.go:69:             4 mallocs; want <= 1
FAIL
FAIL    net/http/httputil       0.017s

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions