chore: remove test cleanup

This commit is contained in:
loks0n committed 2024-12-27 12:27:21 +00:00
1 parent d7b8cf5996
commit 91091d66e9
1 file changed
-20
-20
View File
@@ -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
*/