File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments