diff --git a/test/authentication.js b/test/authentication.js index 3da579fcd3..4b8bcc209e 100644 --- a/test/authentication.js +++ b/test/authentication.js @@ -412,6 +412,11 @@ describe('authentication', function () { }, function (res, body, jar, next) { meta.config.loginAttempts = 5; + assert.equal(res.statusCode, 403); + assert.equal(body, '[[error:account-locked]]'); + loginUser('lockme', 'abcdef', next); + }, + function (res, body, jar, next) { assert.equal(res.statusCode, 403); assert.equal(body, '[[error:account-locked]]'); db.exists('lockout:' + uid, next);