From dc6a832cc30c9a4cc320e3b5ac66c9cc5c97d98f Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 22 Jan 2017 09:59:19 +0100 Subject: [PATCH] Correct BenchmarkIndexSave --- src/restic/index/index_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/index/index_test.go b/src/restic/index/index_test.go index 27aba6491..030789328 100644 --- a/src/restic/index/index_test.go +++ b/src/restic/index/index_test.go @@ -150,7 +150,7 @@ func BenchmarkIndexSave(b *testing.B) { for i := 0; i < 8000; i++ { entries := make([]restic.Blob, 0, 200) - for j := 0; j < len(entries); j++ { + for j := 0; j < cap(entries); j++ { entries = append(entries, restic.Blob{ ID: restic.NewRandomID(), Length: 1000,