Browse Source

Fix unit tests by updating fixtures and updating outdated test

Signed-off-by: Jonas Franz <info@jonasfranz.software>
pull/3748/head
Jonas Franz 7 years ago
parent
commit
ed695c1bf9
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD
  1. 2
      models/fixtures/comment.yml
  2. 2
      models/issue_comment_test.go

2
models/fixtures/comment.yml

@ -30,6 +30,7 @@
line: 4
tree_path: "README.md"
created_unix: 946684812
invalidated: false
-
id: 5
type: 19 # code comment
@ -39,3 +40,4 @@
line: -4
tree_path: "README.md"
created_unix: 946684812
invalidated: false

2
models/issue_comment_test.go

@ -55,5 +55,5 @@ func TestFetchCodeComments(t *testing.T) {
user2 := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User)
res, err = FetchCodeComments(issue, user2)
assert.NoError(t, err)
assert.Empty(t, res)
assert.Len(t, res, 1)
}

Loading…
Cancel
Save