mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #53021 from nextcloud/backport/52932/stable31
[stable31] test: Speed up comments test
This commit is contained in:
commit
64cb674f63
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue