aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity_test.go
diff options
context:
space:
mode:
authorMichael Muré <michael.mure@consensys.net>2019-02-03 19:55:35 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:23 +0100
commit328a4e5abf3ec8ea41f89575fcfb83cf9f086c80 (patch)
tree29ce99a1cb244badd74acb61d2b251e56fd1643f /identity/identity_test.go
parent56c6147eb6012252cf0b723b9eb6d1e841fc2f94 (diff)
downloadgit-bug-328a4e5abf3ec8ea41f89575fcfb83cf9f086c80.tar.gz
identity: wip push/pull
Diffstat (limited to 'identity/identity_test.go')
-rw-r--r--identity/identity_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/identity/identity_test.go b/identity/identity_test.go
index f1c07e79..3ab49d76 100644
--- a/identity/identity_test.go
+++ b/identity/identity_test.go
@@ -29,7 +29,7 @@ func TestIdentityCommitLoad(t *testing.T) {
assert.Nil(t, err)
assert.NotEmpty(t, identity.id)
- loaded, err := Read(mockRepo, identity.id)
+ loaded, err := ReadLocal(mockRepo, identity.id)
assert.Nil(t, err)
commitsAreSet(t, loaded)
equivalentIdentity(t, identity, loaded)
@@ -70,7 +70,7 @@ func TestIdentityCommitLoad(t *testing.T) {
assert.Nil(t, err)
assert.NotEmpty(t, identity.id)
- loaded, err = Read(mockRepo, identity.id)
+ loaded, err = ReadLocal(mockRepo, identity.id)
assert.Nil(t, err)
commitsAreSet(t, loaded)
equivalentIdentity(t, identity, loaded)
@@ -100,7 +100,7 @@ func TestIdentityCommitLoad(t *testing.T) {
assert.Nil(t, err)
assert.NotEmpty(t, identity.id)
- loaded, err = Read(mockRepo, identity.id)
+ loaded, err = ReadLocal(mockRepo, identity.id)
assert.Nil(t, err)
commitsAreSet(t, loaded)
equivalentIdentity(t, identity, loaded)
@@ -209,7 +209,7 @@ func TestMetadata(t *testing.T) {
assert.NoError(t, err)
// reload
- loaded, err := Read(mockRepo, identity.id)
+ loaded, err := ReadLocal(mockRepo, identity.id)
assert.Nil(t, err)
assertHasKeyValue(t, loaded.ImmutableMetadata(), "key1", "value1")
@@ -250,6 +250,6 @@ func TestJSON(t *testing.T) {
assert.Equal(t, identity.id, i.Id())
// make sure we can load the identity properly
- i, err = Read(mockRepo, i.Id())
+ i, err = ReadLocal(mockRepo, i.Id())
assert.NoError(t, err)
}