1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 7 Jul 2024 08:58:05 +0200
Subject: Fix flaky test
Origin: upstream, https://github.com/roundcube/roundcubemail/commit/d03154fdf0a06d39c84df9e77520f94d063152ba
Bug-Debian: https://bugs.debian.org/1089732
---
plugins/password/tests/Password.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/password/tests/Password.php b/plugins/password/tests/Password.php
index 4a897a3..9c19f7e 100644
--- a/plugins/password/tests/Password.php
+++ b/plugins/password/tests/Password.php
@@ -113,7 +113,7 @@ class Tests_Password extends TestCase
$this->assertMatchesRegularExpression('/^\{SHA256-CRYPT\}\$5\$[a-zA-Z0-9]{16}\$[a-zA-Z0-9.\/]{43}$/', $pass);
$pass = \password::hash_password('test', 'hash-bcrypt');
- $this->assertMatchesRegularExpression('/^\{BLF-CRYPT\}\$2y\$10\$[a-zA-Z0-9.\/]{53}$/', $pass);
+ $this->assertMatchesRegularExpression('/^\{BLF-CRYPT\}\$2y\$[0123456789]{2}\$[a-zA-Z0-9.\/]{53}$/', $pass);
// TODO: Test all algos
}
|