diff --git a/tests/lib/User/ManagerTest.php b/tests/lib/User/ManagerTest.php index 53f57eee086a8..22112d83c54b7 100644 --- a/tests/lib/User/ManagerTest.php +++ b/tests/lib/User/ManagerTest.php @@ -673,7 +673,7 @@ public function testRecentlyActive(): void { $manager = \OCP\Server::get(IUserManager::class); // Create some users - $now = (string)time(); + $now = (string)microtime(true); $user1 = $manager->createUser('test_active_1', 'test_active_1'); $config->setUserValue('test_active_1', 'login', 'lastLogin', $now); $user1->setDisplayName('test active 1'); @@ -722,6 +722,12 @@ public function testRecentlyActive(): void { $user3->delete(); $user4->delete(); $user5->delete(); + + $config->deleteAllUserValues($user1->getUID()); + $config->deleteAllUserValues($user2->getUID()); + $config->deleteAllUserValues($user3->getUID()); + $config->deleteAllUserValues($user4->getUID()); + $config->deleteAllUserValues($user5->getUID()); } public function testDeleteUser(): void {