Skip to content

Commit d8e2d17

Browse files
committed
test: fix test for scrutinizer
1 parent 1c81fc1 commit d8e2d17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/system/framework/Security/Hashing/Hasher.spec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
expect($value)->not->toBe('password');
122122
expect($hasher->check('password', $value))->toBeTruthy();
123123
expect($hasher->needsRehash($value))->toBeFalsy();
124-
expect($hasher->needsRehash($value, ['threads' => 1]))->toBeTruthy();
124+
expect($hasher->needsRehash($value, ['threads' => 3]))->toBeTruthy();
125125
expect($hasher->info($value)['algoName'])->toBe('argon2i');
126126
expect($this->hasher->isHashed($value))->toBeTruthy();
127127
} catch (Throwable) {
@@ -137,7 +137,7 @@
137137
expect($value)->not->toBe('password');
138138
expect($hasher->check('password', $value))->toBeTruthy();
139139
expect($hasher->needsRehash($value))->toBeFalsy();
140-
expect($hasher->needsRehash($value, ['threads' => 1]))->toBeTruthy();
140+
expect($hasher->needsRehash($value, ['threads' => 3]))->toBeTruthy();
141141
expect($hasher->info($value)['algoName'])->toBe('argon2id');
142142
expect($this->hasher->isHashed($value))->toBeTruthy();
143143
} catch (Throwable) {

0 commit comments

Comments
 (0)