From 818a7506d8c659829058fb2451951333cf15a6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 25 Oct 2018 14:10:49 +0200 Subject: [PATCH] Speed up ACL tests by reducing saltWorkFactor --- test/acl.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/acl.test.js b/test/acl.test.js index 1e52c65a..d5662ffc 100644 --- a/test/acl.test.js +++ b/test/acl.test.js @@ -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'});