From 77a0bd9caa0bbaac2b6da8ed52852ec1d29697a7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 15 Apr 2024 15:24:20 +0200 Subject: [PATCH] fix(tests): Make tests more reliable on PostgreSQL by also sorting on stop Signed-off-by: Joas Schilling --- lib/Service/BreakoutRoomService.php | 2 +- lib/Signaling/Listener.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/BreakoutRoomService.php b/lib/Service/BreakoutRoomService.php index 238b6120313..8214d01f326 100644 --- a/lib/Service/BreakoutRoomService.php +++ b/lib/Service/BreakoutRoomService.php @@ -439,7 +439,7 @@ public function stopBreakoutRooms(Room $parent): array { $this->roomService->setBreakoutRoomStatus($parent, BreakoutRoom::STATUS_STOPPED); - $breakoutRooms = $this->manager->getMultipleRoomsByObject(BreakoutRoom::PARENT_OBJECT_TYPE, $parent->getToken()); + $breakoutRooms = $this->manager->getMultipleRoomsByObject(BreakoutRoom::PARENT_OBJECT_TYPE, $parent->getToken(), true); foreach ($breakoutRooms as $breakoutRoom) { $this->roomService->setLobby($breakoutRoom, Webinary::LOBBY_NON_MODERATORS, null); diff --git a/lib/Signaling/Listener.php b/lib/Signaling/Listener.php index 69de6936830..4423a369157 100644 --- a/lib/Signaling/Listener.php +++ b/lib/Signaling/Listener.php @@ -395,7 +395,7 @@ protected function getSessionIdsForNonModeratorsMatchingParticipant(Participant } protected function notifyBreakoutRoomStopped(Room $room): void { - $breakoutRooms = $this->manager->getMultipleRoomsByObject(BreakoutRoom::PARENT_OBJECT_TYPE, $room->getToken()); + $breakoutRooms = $this->manager->getMultipleRoomsByObject(BreakoutRoom::PARENT_OBJECT_TYPE, $room->getToken(), true); foreach ($breakoutRooms as $breakoutRoom) { $sessionIds = [];