From 0d79156bb2afd4e0fb481273357206e38e254084 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 17 May 2025 16:44:22 +0200 Subject: [PATCH] test: Speed up comments test Signed-off-by: Joas Schilling --- tests/lib/Comments/ManagerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index fb2f913f291..86e70c56026 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -1073,6 +1073,7 @@ class ManagerTest extends TestCase { * @return array */ private function proccessComments(array $data): array { + $this->connection->beginTransaction(); /** @var array $comments */ $comments = []; foreach ($data as $comment) { @@ -1088,6 +1089,7 @@ class ManagerTest extends TestCase { $comment = $this->testSave($message, $actorId, $verb, $parentId, $id); $comments[$comment->getMessage() . '#' . $comment->getActorId()] = $comment; } + $this->connection->commit(); return $comments; }