File: Fix-flaky-test.patch

package info (click to toggle)
roundcube 1.6.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,868 kB
  • sloc: javascript: 195,588; php: 76,818; sql: 3,150; sh: 2,882; pascal: 1,079; makefile: 234; xml: 93; perl: 73; ansic: 48; python: 21
file content (23 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download
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
     }