mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-02 01:46:45 +00:00
fix: use require.Error instead of assert.Error for error assertions
This commit is contained in:
@@ -330,7 +330,7 @@ func TestTaskCommentIDOR(t *testing.T) {
|
||||
"task": "1", // task accessible to testuser1
|
||||
"commentid": "18", // comment belonging to task 34, NOT accessible to testuser1
|
||||
})
|
||||
assert.Error(t, err)
|
||||
require.Error(t, err)
|
||||
assertHandlerErrorCode(t, err, models.ErrCodeTaskCommentDoesNotExist)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user