diff options
author | Joas Schilling <coding@schilljs.com> | 2025-05-17 16:44:22 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2025-05-21 08:31:25 +0200 |
commit | cfa2eddd90ac40a3a0da29d4ef86baa380f50df4 (patch) | |
tree | 8e1b743bd40ebd79cf8567291495fd0134d4587a | |
parent | b1a47eba1c243def62907b5b9b205bae234a4c38 (diff) | |
download | nextcloud-server-backport/52932/stable30.tar.gz nextcloud-server-backport/52932/stable30.zip |
test: Speed up comments testbackport/52932/stable30
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | tests/lib/Comments/ManagerTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index 760f504fc60..75536bec0c7 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -1099,6 +1099,7 @@ class ManagerTest extends TestCase { * @return IComment[] */ private function proccessComments(array $data): array { + $this->connection->beginTransaction(); /** @var IComment[] */ $comments = []; foreach ($data as $comment) { @@ -1114,6 +1115,7 @@ class ManagerTest extends TestCase { $comment = $this->testSave($message, $actorId, $verb, $parentId, $id); $comments[$comment->getMessage() . '#' . $comment->getActorId()] = $comment; } + $this->connection->commit(); return $comments; } |