Skip to content

Commit

Permalink
test(timeout): locks are deprecated after expiry
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Feb 3, 2025
1 parent 43b7e2f commit f3c7152
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Feature/LockFeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use OCA\FilesLock\AppInfo\Application;
use OCA\FilesLock\Model\FileLock;
use OCA\FilesLock\Service\ConfigService;
use OCA\FilesLock\Service\LockService;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Files\File;
use OCP\Files\IRootFolder;
Expand Down Expand Up @@ -200,6 +201,8 @@ public function testLockUserExpire() {
}

$this->toTheFuture(3600);
$deprecated = \OCP\Server::get(LockService::class)->getDeprecatedLocks();
self::assertNotEmpty($deprecated);
$file->putContent('CCC');
self::assertEquals('CCC', $file->getContent());
}
Expand Down

0 comments on commit f3c7152

Please sign in to comment.