aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_create_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-01-20 15:41:27 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:22 +0100
commit14b240af8fef269d2c1d5dde2fff192b656c50f3 (patch)
tree4f6ea032789d811cd019bbb6c190c99a650084b2 /bug/op_create_test.go
parentd10c76469d40f13e27739fd363145e89bf74c3e0 (diff)
downloadgit-bug-14b240af8fef269d2c1d5dde2fff192b656c50f3.tar.gz
identity: more cleaning and fixes after a code review
Diffstat (limited to 'bug/op_create_test.go')
-rw-r--r--bug/op_create_test.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/bug/op_create_test.go b/bug/op_create_test.go
index 31693a4a..065b81c5 100644
--- a/bug/op_create_test.go
+++ b/bug/op_create_test.go
@@ -6,7 +6,6 @@ import (
"time"
"github.com/MichaelMure/git-bug/identity"
- "github.com/go-test/deep"
"github.com/stretchr/testify/assert"
)
@@ -22,9 +21,7 @@ func TestCreate(t *testing.T) {
create.Apply(&snapshot)
hash, err := create.Hash()
- if err != nil {
- t.Fatal(err)
- }
+ assert.NoError(t, err)
comment := Comment{Author: rene, Message: "message", UnixTime: Timestamp(create.UnixTime)}
@@ -42,10 +39,7 @@ func TestCreate(t *testing.T) {
},
}
- deep.CompareUnexportedFields = true
- if diff := deep.Equal(snapshot, expected); diff != nil {
- t.Fatal(diff)
- }
+ assert.Equal(t, expected, snapshot)
}
func TestCreateSerialize(t *testing.T) {