Skip to content

Commit

Permalink
Merge pull request #12119 from nextcloud/backport/12115/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(tests): Make tests more reliable on PostgreSQL by also sorting on stop
  • Loading branch information
nickvergessen committed Apr 15, 2024
2 parents 2b54153 + 77a0bd9 commit 071c638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Service/BreakoutRoomService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion lib/Signaling/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 071c638

Please sign in to comment.