aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/container/heap/heap_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/container/heap/heap_test.go')
-rw-r--r--libgo/go/container/heap/heap_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/container/heap/heap_test.go b/libgo/go/container/heap/heap_test.go
index b3d054c..d4111042 100644
--- a/libgo/go/container/heap/heap_test.go
+++ b/libgo/go/container/heap/heap_test.go
@@ -173,7 +173,7 @@ func TestRemove2(t *testing.T) {
func BenchmarkDup(b *testing.B) {
const n = 10000
- h := make(myHeap, n)
+ h := make(myHeap, 0, n)
for i := 0; i < b.N; i++ {
for j := 0; j < n; j++ {
Push(&h, 0) // all elements are the same