Fix tests
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2019-11-02 21:08:41 +01:00
parent bc275773bf
commit 51729b1df5
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func TestTask_Create(t *testing.T) {
// Delete a nonexistant task
listtask.ID = 0
err = listtask.Delete()
_, err = listtask.CanDelete(doer) // The check if the task exists happens in CanDelete
assert.Error(t, err)
assert.True(t, IsErrTaskDoesNotExist(err))