aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_create_test.go
diff options
context:
space:
mode:
authorAlexander Scharinger <rng.dynamics@gmail.com>2021-04-11 22:08:21 +0200
committerMichael Muré <batolettre@gmail.com>2021-04-17 20:03:33 +0200
commit6a5ffd94e0c7a2b9373981f99c4798eda601f4da (patch)
treea63b24b34333dff04ac9416f9944b65ae6f67c8b /bug/op_create_test.go
parentc71d26d513e4e5e36e6983e05dee4ad28ec664c7 (diff)
downloadgit-bug-6a5ffd94e0c7a2b9373981f99c4798eda601f4da.tar.gz
Fix ID string in order to find correct bug instance
Diffstat (limited to 'bug/op_create_test.go')
-rw-r--r--bug/op_create_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/bug/op_create_test.go b/bug/op_create_test.go
index 1b359dee..25b87cfe 100644
--- a/bug/op_create_test.go
+++ b/bug/op_create_test.go
@@ -30,10 +30,8 @@ func TestCreate(t *testing.T) {
id := create.Id()
require.NoError(t, id.Validate())
- commentId := entity.CombineIds(create.Id(), create.Id())
-
comment := Comment{
- id: commentId,
+ id: entity.CombineIds(create.Id(), create.Id()),
Author: rene,
Message: "message",
UnixTime: timestamp.Timestamp(create.UnixTime),
@@ -51,7 +49,7 @@ func TestCreate(t *testing.T) {
CreateTime: create.Time(),
Timeline: []TimelineItem{
&CreateTimelineItem{
- CommentTimelineItem: NewCommentTimelineItem(commentId, comment),
+ CommentTimelineItem: NewCommentTimelineItem(comment),
},
},
}