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 --- identity/identity_actions_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'identity/identity_actions_test.go') diff --git a/identity/identity_actions_test.go b/identity/identity_actions_test.go index 48652438..773574c6 100644 --- a/identity/identity_actions_test.go +++ b/identity/identity_actions_test.go @@ -23,7 +23,7 @@ func TestPushPull(t *testing.T) { err = Pull(repoB, "origin") require.NoError(t, err) - identities := allIdentities(t, ReadAllLocalIdentities(repoB)) + identities := allIdentities(t, ReadAllLocal(repoB)) if len(identities) != 1 { t.Fatal("Unexpected number of bugs") @@ -40,7 +40,7 @@ func TestPushPull(t *testing.T) { err = Pull(repoA, "origin") require.NoError(t, err) - identities = allIdentities(t, ReadAllLocalIdentities(repoA)) + identities = allIdentities(t, ReadAllLocal(repoA)) if len(identities) != 2 { t.Fatal("Unexpected number of bugs") @@ -70,7 +70,7 @@ func TestPushPull(t *testing.T) { err = Pull(repoB, "origin") require.NoError(t, err) - identities = allIdentities(t, ReadAllLocalIdentities(repoB)) + identities = allIdentities(t, ReadAllLocal(repoB)) if len(identities) != 2 { t.Fatal("Unexpected number of bugs") @@ -84,7 +84,7 @@ func TestPushPull(t *testing.T) { err = Pull(repoA, "origin") require.NoError(t, err) - identities = allIdentities(t, ReadAllLocalIdentities(repoA)) + identities = allIdentities(t, ReadAllLocal(repoA)) if len(identities) != 2 { t.Fatal("Unexpected number of bugs") @@ -118,7 +118,7 @@ func TestPushPull(t *testing.T) { err = Pull(repoB, "origin") require.Error(t, err) - identities = allIdentities(t, ReadAllLocalIdentities(repoB)) + identities = allIdentities(t, ReadAllLocal(repoB)) if len(identities) != 2 { t.Fatal("Unexpected number of bugs") @@ -133,7 +133,7 @@ func TestPushPull(t *testing.T) { err = Pull(repoA, "origin") require.NoError(t, err) - identities = allIdentities(t, ReadAllLocalIdentities(repoA)) + identities = allIdentities(t, ReadAllLocal(repoA)) if len(identities) != 2 { t.Fatal("Unexpected number of bugs") -- cgit