From ca720f165cb286d4372ad48595e532a2423f2f07 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 16 Sep 2020 16:22:02 +0200 Subject: cache,bug,identity: structural change - bug doesn't commit identities anymore, only make sure they are commit - cache use an IdentityResolver to load bugs with identities from the cache (deps injection) - IdentityCache now are identity.Interface --- tests/read_bugs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/read_bugs_test.go') diff --git a/tests/read_bugs_test.go b/tests/read_bugs_test.go index e6264eba..53b84fd5 100644 --- a/tests/read_bugs_test.go +++ b/tests/read_bugs_test.go @@ -14,7 +14,7 @@ func TestReadBugs(t *testing.T) { random_bugs.FillRepoWithSeed(repo, 15, 42) - bugs := bug.ReadAllLocalBugs(repo) + bugs := bug.ReadAllLocal(repo) for b := range bugs { if b.Err != nil { t.Fatal(b.Err) @@ -30,7 +30,7 @@ func benchmarkReadBugs(bugNumber int, t *testing.B) { t.ResetTimer() for n := 0; n < t.N; n++ { - bugs := bug.ReadAllLocalBugs(repo) + bugs := bug.ReadAllLocal(repo) for b := range bugs { if b.Err != nil { t.Fatal(b.Err) -- cgit