diff options
author | Michael Muré <batolettre@gmail.com> | 2019-08-07 19:14:12 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-08-08 19:06:13 +0200 |
commit | 612a29b031c0f2914d8b283b99bf187f20182fa9 (patch) | |
tree | ad8f57f5d52952a1506da4c34e5f88d886cef352 /bridge/github/export_test.go | |
parent | 2e1a5e246ee3589c2f664a62ebd06be7dc69c229 (diff) | |
download | git-bug-612a29b031c0f2914d8b283b99bf187f20182fa9.tar.gz |
fix everything following the hash-->id change
Diffstat (limited to 'bridge/github/export_test.go')
-rw-r--r-- | bridge/github/export_test.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bridge/github/export_test.go b/bridge/github/export_test.go index 80660e77..ac18fea5 100644 --- a/bridge/github/export_test.go +++ b/bridge/github/export_test.go @@ -58,19 +58,13 @@ func testCases(t *testing.T, repo *cache.RepoCache, identity *cache.IdentityCach bugWithCommentEditions, createOp, err := repo.NewBug("bug with comments editions", "new bug") require.NoError(t, err) - createOpHash, err := createOp.Hash() - require.NoError(t, err) - - _, err = bugWithCommentEditions.EditComment(createOpHash, "first comment edited") + _, err = bugWithCommentEditions.EditComment(createOp.ID(), "first comment edited") require.NoError(t, err) commentOp, err := bugWithCommentEditions.AddComment("first comment") require.NoError(t, err) - commentOpHash, err := commentOp.Hash() - require.NoError(t, err) - - _, err = bugWithCommentEditions.EditComment(commentOpHash, "first comment edited") + _, err = bugWithCommentEditions.EditComment(commentOp.ID(), "first comment edited") require.NoError(t, err) // bug status changed |