mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
chore: remove test cleanup
This commit is contained in:
1 parent
d7b8cf5996
commit
91091d66e9
1 file changed
-20
@@ -86,26 +86,6 @@ abstract class Base extends TestCase
|
||||
$this->assertEquals($abuse->check(), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test logs are deleted after cleanup
|
||||
*/
|
||||
public function testCleanup(): void
|
||||
{
|
||||
$adapter = $this->getAdapter('', 1, 1);
|
||||
$abuse = new Abuse($adapter);
|
||||
|
||||
$logs = $abuse->getLogs(0, 100);
|
||||
$this->assertEquals(6, \count($logs)); // 6 keys are created in the test
|
||||
|
||||
sleep(1);
|
||||
|
||||
$status = $abuse->cleanup(time());
|
||||
$this->assertEquals($status, true);
|
||||
|
||||
$logs = $abuse->getLogs(0, 100);
|
||||
$this->assertEquals(0, \count($logs));
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify that the time format is correct
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user