From 4fb010384c08f71ae06eff6dcce8d25ca77fdd0f Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 20 Feb 2026 23:57:14 -0500 Subject: [PATCH] test(DbHandler): make sure auto-increment is reset in between tests DELETE doesn't reset auto-increment; TRUNCATE does. Also probably faster. Signed-off-by: Josh --- apps/federation/tests/DbHandlerTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/federation/tests/DbHandlerTest.php b/apps/federation/tests/DbHandlerTest.php index a812c28b634..f834e787360 100644 --- a/apps/federation/tests/DbHandlerTest.php +++ b/apps/federation/tests/DbHandlerTest.php @@ -43,9 +43,7 @@ class DbHandlerTest extends TestCase { } protected function tearDown(): void { - $query = $this->connection->getQueryBuilder()->delete($this->dbTable); - $query->executeStatement() - ; + $this->connection->truncateTable($this->dbTable); parent::tearDown(); }