1
0

Fix error handling when deleting an attachment file

This commit is contained in:
kolaente
2021-07-20 10:14:49 +02:00
parent e4a0066e20
commit 733f26f017
2 changed files with 11 additions and 2 deletions

View File

@ -195,7 +195,7 @@ func TestTaskComment_ReadAll(t *testing.T) {
comments := result.([]*TaskComment)
assert.NoError(t, err)
assert.Len(t, comments, 2)
assert.Equal(t, int64(-2), comments[1].AuthorID)
assert.NotNil(t, comments[1].Author)
assert.Equal(t, int64(-2), comments[0].AuthorID)
assert.NotNil(t, comments[0].Author)
})
}