From c3a16106607896973b01aade084706aaf074bce4 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 16 Apr 2018 10:31:36 +0200 Subject: storage: dotgit, init fixtures in benchmark. Fixes #770 fixtures is not initialized in BenchmarkRefMultipleTimes and caused panic. Signed-off-by: Javi Fontan --- storage/filesystem/internal/dotgit/dotgit_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/filesystem/internal/dotgit/dotgit_test.go b/storage/filesystem/internal/dotgit/dotgit_test.go index 2c43295..02cd9ec 100644 --- a/storage/filesystem/internal/dotgit/dotgit_test.go +++ b/storage/filesystem/internal/dotgit/dotgit_test.go @@ -151,6 +151,7 @@ func (s *SuiteDotGit) TestRefsFromReferenceFile(c *C) { } func BenchmarkRefMultipleTimes(b *testing.B) { + fixtures.Init() fs := fixtures.Basic().ByTag(".git").One().DotGit() refname := plumbing.ReferenceName("refs/remotes/origin/branch") -- cgit