aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-29 21:09:09 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-29 21:09:09 +0200
commitd450c7a883876e0f5356fb5cb54109a0a2a77dfd (patch)
tree5c04dde6492dc649f84761ba60afc3843b18ff92 /bug/bug_test.go
parent75c921cdf9856c01ebf6ce50abfb31e403008b09 (diff)
downloadgit-bug-d450c7a883876e0f5356fb5cb54109a0a2a77dfd.tar.gz
use more testify, fix unchecked errors
Diffstat (limited to 'bug/bug_test.go')
-rw-r--r--bug/bug_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/bug/bug_test.go b/bug/bug_test.go
index a7759ad8..0fd373d5 100644
--- a/bug/bug_test.go
+++ b/bug/bug_test.go
@@ -3,6 +3,7 @@ package bug
import (
"github.com/MichaelMure/git-bug/repository"
"github.com/go-test/deep"
+ "github.com/stretchr/testify/assert"
"testing"
)
@@ -65,7 +66,8 @@ func TestBugSerialisation(t *testing.T) {
repo := repository.NewMockRepoForTest()
- bug1.Commit(repo)
+ err := bug1.Commit(repo)
+ assert.Nil(t, err)
bug2, err := ReadLocalBug(repo, bug1.Id())
if err != nil {