Merge pull request #135 from strongloop/feature/speed-up-user-passwords

Speed up tests accessing User.password
This commit is contained in:
Miroslav Bajtoš 2014-01-13 22:04:41 -08:00
commit 1f80164e69
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ app = null;
TaskEmitter = require('strong-task-emitter'); TaskEmitter = require('strong-task-emitter');
request = require('supertest'); request = require('supertest');
// Speed up the password hashing algorithm
// for tests using the built-in User model
loopback.User.settings.saltWorkFactor = 4;
beforeEach(function () { beforeEach(function () {
app = loopback(); app = loopback();