aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_create_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-11-30 00:41:50 +0100
committerMichael Muré <batolettre@gmail.com>2021-02-14 12:17:49 +0100
commitfcf43915e1736fe0b56f8f06386f68d9b56da7a8 (patch)
treee85beec4672a8a4792317323ac33a2df8ad40f98 /bug/op_create_test.go
parentd96284da646cc1d3e3d7d3b2f7a1ab0e8e7a4d88 (diff)
downloadgit-bug-fcf43915e1736fe0b56f8f06386f68d9b56da7a8.tar.gz
bug: fix tests
Diffstat (limited to 'bug/op_create_test.go')
-rw-r--r--bug/op_create_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/bug/op_create_test.go b/bug/op_create_test.go
index 533aec2e..73a65778 100644
--- a/bug/op_create_test.go
+++ b/bug/op_create_test.go
@@ -29,14 +29,17 @@ func TestCreate(t *testing.T) {
id := create.Id()
require.NoError(t, id.Validate())
+ commentId := DeriveCommentId(create.Id(), create.Id())
+
comment := Comment{
- id: id,
+ id: commentId,
Author: rene,
Message: "message",
UnixTime: timestamp.Timestamp(create.UnixTime),
}
expected := Snapshot{
+ id: create.Id(),
Title: "title",
Comments: []Comment{
comment,
@@ -47,7 +50,7 @@ func TestCreate(t *testing.T) {
CreateTime: create.Time(),
Timeline: []TimelineItem{
&CreateTimelineItem{
- CommentTimelineItem: NewCommentTimelineItem(id, comment),
+ CommentTimelineItem: NewCommentTimelineItem(commentId, comment),
},
},
}