Merge pull request #4039 from strongloop/speed-up-acl-tests

Speed up ACL tests by reducing saltWorkFactor
This commit is contained in:
Miroslav Bajtoš 2018-10-25 15:39:18 +02:00 committed by GitHub
commit a239a11656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -626,6 +626,9 @@ describe('authorized roles propagation in RemotingContext', function() {
app.enableAuth({dataSource: 'db'});
models = app.models;
// Speed up the password hashing algorithm for tests
models.User.settings.saltWorkFactor = 4;
// creating a custom model
const MyTestModel = app.registry.createModel('MyTestModel');
app.model(MyTestModel, {dataSource: 'db'});