diff options
author | Michael Muré <batolettre@gmail.com> | 2019-01-19 19:23:31 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:40:21 +0100 |
commit | d10c76469d40f13e27739fd363145e89bf74c3e0 (patch) | |
tree | ff613ef1ce9400f8c208d3381bd703b186958aa3 /bug/operation_iterator_test.go | |
parent | 844616baf8dc628360942d57fd69f24e298e08da (diff) | |
download | git-bug-d10c76469d40f13e27739fd363145e89bf74c3e0.tar.gz |
identity: somewhat getting closer !
Diffstat (limited to 'bug/operation_iterator_test.go')
-rw-r--r-- | bug/operation_iterator_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bug/operation_iterator_test.go b/bug/operation_iterator_test.go index b8e1bf09..e1aa8911 100644 --- a/bug/operation_iterator_test.go +++ b/bug/operation_iterator_test.go @@ -3,6 +3,8 @@ package bug import ( "github.com/MichaelMure/git-bug/identity" "github.com/MichaelMure/git-bug/repository" + "github.com/stretchr/testify/assert" + "testing" "time" ) @@ -29,13 +31,15 @@ func TestOpIterator(t *testing.T) { bug1.Append(addCommentOp) bug1.Append(setStatusOp) bug1.Append(labelChangeOp) - bug1.Commit(mockRepo) + err := bug1.Commit(mockRepo) + assert.NoError(t, err) // second pack bug1.Append(setTitleOp) bug1.Append(setTitleOp) bug1.Append(setTitleOp) - bug1.Commit(mockRepo) + err = bug1.Commit(mockRepo) + assert.NoError(t, err) // staging bug1.Append(setTitleOp) |