Skip to content

Commit f3c7152

Browse files
committed
test(timeout): locks are deprecated after expiry
Signed-off-by: Max <[email protected]>
1 parent 43b7e2f commit f3c7152

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Feature/LockFeatureTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use OCA\FilesLock\AppInfo\Application;
99
use OCA\FilesLock\Model\FileLock;
1010
use OCA\FilesLock\Service\ConfigService;
11+
use OCA\FilesLock\Service\LockService;
1112
use OCP\AppFramework\Utility\ITimeFactory;
1213
use OCP\Files\File;
1314
use OCP\Files\IRootFolder;
@@ -200,6 +201,8 @@ public function testLockUserExpire() {
200201
}
201202

202203
$this->toTheFuture(3600);
204+
$deprecated = \OCP\Server::get(LockService::class)->getDeprecatedLocks();
205+
self::assertNotEmpty($deprecated);
203206
$file->putContent('CCC');
204207
self::assertEquals('CCC', $file->getContent());
205208
}

0 commit comments

Comments
 (0)