diff --git a/test/authentication.js b/test/authentication.js index 6691a96c66..9d49a8e0ff 100644 --- a/test/authentication.js +++ b/test/authentication.js @@ -167,6 +167,7 @@ describe('authentication', function () { 'x-csrf-token': body.csrf_token, }, }, function (err, response, body) { + assert.ifError(err); assert.equal(response.statusCode, 403); assert.equal(body, '[[error:invalid-login-credentials]]'); done();