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?
to your account
I try to test message in the project github.com/golang/text/ in version 0.1.0 it fails with
--- FAIL: TestCountMallocs (0.00s)
fmt_test.go:1443: Sprintf("%x"): got 3 allocs, want <=2
fmt_test.go:1443: Sprintf("%s"): got 3 allocs, want <=2
fmt_test.go:1443: Sprintf("%x %x"): got 4 allocs, want <=3
fmt_test.go:1443: Sprintf("%g"): got 5 allocs, want <=2
fmt_test.go:1443: Fprintf(buf, "%s"): got 2 allocs, want <=1
fmt_test.go:1443: Fprintf(buf, "%x %x %x"): got 1 allocs, want <=0
exit status 1
FAIL golang.org/x/text/message 0.023s
Thank you for your help
The text was updated successfully, but these errors were encountered:
I can reproduce this with go1.9 too. I think we don't hit it on the builders because the test is skipped if GOMAXPROCS > 1, but it's easily reproduced with GOMAXPROCS=1 go test -run=TestCountMallocs
GOMAXPROCS=1 go test -run=TestCountMallocs
Sorry, something went wrong.
No branches or pull requests