aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_create_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-04-18 20:37:47 +0200
committerGitHub <noreply@github.com>2021-04-18 20:37:47 +0200
commit24155156223595e48f215e87cf9ce7895e22f4a7 (patch)
tree84bb7a57e62f376068241bf911fa43b3694a1eb1 /bug/op_create_test.go
parent718aa5f6e382b9c09caf866215358238ce6b5004 (diff)
parent6a5ffd94e0c7a2b9373981f99c4798eda601f4da (diff)
downloadgit-bug-24155156223595e48f215e87cf9ce7895e22f4a7.tar.gz
Merge pull request #631 from MichaelMure/comment-edit
Fix ID string in order to find correct bug instance on comment edit operation
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),
},
},
}