Browse Source
fix(tests): Make tests more reliable on PostgreSQL by also sorting on stop
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/12115/head
Joas Schilling
2 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
2 changed files with
2 additions and
2 deletions
-
lib/Service/BreakoutRoomService.php
-
lib/Signaling/Listener.php
|
|
|
@ -439,7 +439,7 @@ class BreakoutRoomService { |
|
|
|
|
|
|
|
$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); |
|
|
|
|
|
|
|
|
|
|
|
@ -395,7 +395,7 @@ class Listener implements IEventListener { |
|
|
|
} |
|
|
|
|
|
|
|
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 = []; |
|
|
|
|