aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity_actions_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-16 16:22:02 +0200
committerMichael Muré <batolettre@gmail.com>2020-10-04 20:39:10 +0200
commitca720f165cb286d4372ad48595e532a2423f2f07 (patch)
tree6e1496a1a6603abbd473cc0060a5acebc763a68b /identity/identity_actions_test.go
parentd56ce3d5d9f5ef74201a8ee7c25be4820d435b47 (diff)
downloadgit-bug-ca720f165cb286d4372ad48595e532a2423f2f07.tar.gz
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
Diffstat (limited to 'identity/identity_actions_test.go')
-rw-r--r--identity/identity_actions_test.go12
1 files changed, 6 insertions, 6 deletions
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")