Adapt integration tests to always pass a room id to Project::share

Randomized test is failing, so we'll look into that next.
This commit is contained in:
Antonio Scandurra 2022-10-03 15:44:11 +02:00
parent 964a5d2db7
commit 6426037653
5 changed files with 349 additions and 224 deletions

View file

@ -24,6 +24,10 @@ pub struct Room {
impl Entity for Room {
type Event = Event;
fn release(&mut self, _: &mut MutableAppContext) {
self.client.send(proto::LeaveRoom { id: self.id }).log_err();
}
}
impl Room {
@ -99,6 +103,14 @@ impl Room {
Ok(())
}
pub fn id(&self) -> u64 {
self.id
}
pub fn status(&self) -> RoomStatus {
self.status
}
pub fn remote_participants(&self) -> &HashMap<PeerId, RemoteParticipant> {
&self.remote_participants
}
@ -183,7 +195,7 @@ pub enum RoomStatus {
}
impl RoomStatus {
fn is_offline(&self) -> bool {
pub fn is_offline(&self) -> bool {
matches!(self, RoomStatus::Offline)
}
}