Fix unit tests by updating fixtures and updating outdated test

Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
Jonas Franz 2018-05-14 10:55:50 +02:00
parent d2b43471c7
commit ed695c1bf9
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD
2 changed files with 3 additions and 1 deletions

View File

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

View File

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