Speed up ACL tests by reducing saltWorkFactor
This commit is contained in:
parent
69df6386fc
commit
818a7506d8
|
@ -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'});
|
||||||
|
|
Loading…
Reference in New Issue