mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
ensure auth tests have a proper delay set
It needs a small delay to test with.
This commit is contained in:
@@ -21,7 +21,7 @@ describe('Security of REST API V1', function() {
|
|||||||
process.env.API_SECRET = 'this is my long pass phrase';
|
process.env.API_SECRET = 'this is my long pass phrase';
|
||||||
self.env = require('../lib/server/env')();
|
self.env = require('../lib/server/env')();
|
||||||
self.env.settings.authDefaultRoles = 'denied';
|
self.env.settings.authDefaultRoles = 'denied';
|
||||||
self.env.settings.authFailDelay = 0;
|
self.env.settings.authFailDelay = 50;
|
||||||
this.wares = require('../lib/middleware/')(self.env);
|
this.wares = require('../lib/middleware/')(self.env);
|
||||||
self.app = require('express')();
|
self.app = require('express')();
|
||||||
self.app.enable('api');
|
self.app.enable('api');
|
||||||
|
|||||||
Reference in New Issue
Block a user