diff options
Diffstat (limited to 'src/pkg/net/http/header_test.go')
-rw-r--r-- | src/pkg/net/http/header_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pkg/net/http/header_test.go b/src/pkg/net/http/header_test.go index a2b82a701..9fd9837a5 100644 --- a/src/pkg/net/http/header_test.go +++ b/src/pkg/net/http/header_test.go @@ -193,6 +193,9 @@ func BenchmarkHeaderWriteSubset(b *testing.B) { } func TestHeaderWriteSubsetMallocs(t *testing.T) { + if testing.Short() { + t.Skip("skipping malloc count in short mode") + } if runtime.GOMAXPROCS(0) > 1 { t.Skip("skipping; GOMAXPROCS>1") } @@ -201,6 +204,6 @@ func TestHeaderWriteSubsetMallocs(t *testing.T) { testHeader.WriteSubset(&buf, nil) }) if n > 0 { - t.Errorf("mallocs = %d; want 0", n) + t.Errorf("mallocs = %g; want 0", n) } } |