Speed up ACL tests by reducing saltWorkFactor

This commit is contained in:
Miroslav Bajtoš 2018-10-25 14:10:49 +02:00
parent 69df6386fc
commit 818a7506d8
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
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'}); app.enableAuth({dataSource: 'db'});
models = app.models; models = app.models;
// Speed up the password hashing algorithm for tests
models.User.settings.saltWorkFactor = 4;
// creating a custom model // creating a custom model
const MyTestModel = app.registry.createModel('MyTestModel'); const MyTestModel = app.registry.createModel('MyTestModel');
app.model(MyTestModel, {dataSource: 'db'}); app.model(MyTestModel, {dataSource: 'db'});