Skip to content

Commit 2358f2f

Browse files
committed
INT-16803: Fix broken unit tests since 3.10 merge
1 parent 7b9fd86 commit 2358f2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/redis_lock_factory_test.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public function test_acquire_lock() {
124124
* @throws coding_exception
125125
*/
126126
public function test_lock_extendttl() {
127-
$this->markTestSkipped("Started to fail since 3.10.1 Merge");
128127
if (!$this->is_redis_available()) {
129128
$this->markTestSkipped('Redis server not available');
130129
}
@@ -135,6 +134,9 @@ public function test_lock_extendttl() {
135134
$this->assertNotEmpty($lock1);
136135
$this->assertFalse($lock1->extend(10000));
137136

137+
$this->assertDebuggingCalledCount(2,
138+
['The function extend() is deprecated, please do not use it anymore.',
139+
'The function extend_lock() is deprecated, please do not use it anymore.']);
138140
$newttl = $redislockfactory->get_ttl($lock1);
139141
$this->assertEquals(-1, $newttl);
140142

0 commit comments

Comments
 (0)