aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-08 22:05:13 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 22:05:13 +0100
commitbef35d4c679de81a214c99a30916fa7ebfc3f6a8 (patch)
tree807f3ea408c6af88f9de82e00b3788bf7e361e28
parenta335725cc5f712f3f3089154afa96881284d4853 (diff)
downloadgit-bug-bef35d4c679de81a214c99a30916fa7ebfc3f6a8.tar.gz
bridge: hopefully fix tests
-rw-r--r--bridge/github/export_test.go2
-rw-r--r--bridge/gitlab/export_test.go2
2 files changed, 4 insertions, 0 deletions
diff --git a/bridge/github/export_test.go b/bridge/github/export_test.go
index 36d43173..7d6e6fb1 100644
--- a/bridge/github/export_test.go
+++ b/bridge/github/export_test.go
@@ -148,6 +148,8 @@ func TestPushPull(t *testing.T) {
author, err := backend.NewIdentity("test identity", "test@test.org")
require.NoError(t, err)
author.SetMetadata(metaKeyGithubLogin, login)
+ err = author.Commit()
+ require.NoError(t, err)
err = backend.SetUserIdentity(author)
require.NoError(t, err)
diff --git a/bridge/gitlab/export_test.go b/bridge/gitlab/export_test.go
index 8410ebba..1d387655 100644
--- a/bridge/gitlab/export_test.go
+++ b/bridge/gitlab/export_test.go
@@ -153,6 +153,8 @@ func TestPushPull(t *testing.T) {
author, err := backend.NewIdentity("test identity", "test@test.org")
require.NoError(t, err)
author.SetMetadata(metaKeyGitlabLogin, login)
+ err = author.Commit()
+ require.NoError(t, err)
err = backend.SetUserIdentity(author)
require.NoError(t, err)