fix: use require.Error instead of assert.Error for error assertions

This commit is contained in:
kolaente
2026-03-20 12:12:16 +01:00
committed by kolaente
parent 4b91e5efa1
commit b7a1408098
2 changed files with 3 additions and 2 deletions

View File

@@ -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)
})
}