From d8e2d170f28393146fd790cc122f0b534e0240f8 Mon Sep 17 00:00:00 2001 From: Dimitri Sitchet Tomkeu Date: Wed, 19 Mar 2025 12:23:34 +0100 Subject: [PATCH] test: fix test for scrutinizer --- spec/system/framework/Security/Hashing/Hasher.spec.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/framework/Security/Hashing/Hasher.spec.php b/spec/system/framework/Security/Hashing/Hasher.spec.php index 0c6bffa..10f0a28 100644 --- a/spec/system/framework/Security/Hashing/Hasher.spec.php +++ b/spec/system/framework/Security/Hashing/Hasher.spec.php @@ -121,7 +121,7 @@ expect($value)->not->toBe('password'); expect($hasher->check('password', $value))->toBeTruthy(); expect($hasher->needsRehash($value))->toBeFalsy(); - expect($hasher->needsRehash($value, ['threads' => 1]))->toBeTruthy(); + expect($hasher->needsRehash($value, ['threads' => 3]))->toBeTruthy(); expect($hasher->info($value)['algoName'])->toBe('argon2i'); expect($this->hasher->isHashed($value))->toBeTruthy(); } catch (Throwable) { @@ -137,7 +137,7 @@ expect($value)->not->toBe('password'); expect($hasher->check('password', $value))->toBeTruthy(); expect($hasher->needsRehash($value))->toBeFalsy(); - expect($hasher->needsRehash($value, ['threads' => 1]))->toBeTruthy(); + expect($hasher->needsRehash($value, ['threads' => 3]))->toBeTruthy(); expect($hasher->info($value)['algoName'])->toBe('argon2id'); expect($this->hasher->isHashed($value))->toBeTruthy(); } catch (Throwable) {