fix bad sync against no messages for mockroom

This commit is contained in:
bel
2020-05-03 09:49:38 -06:00
parent 5da81e3f91
commit cbb8bbec40
5 changed files with 73 additions and 13 deletions

View File

@@ -82,6 +82,10 @@ mod tests {
let room_id = r1.room_id();
let mut gm = GameMaster::new(r1);
let mut r2 = mrs.join(room_id).unwrap();
r2.send(r#"{
"msgtype": "m.text",
"body": ""
}"#);
gm.run_lobby();
assert!(gm.lobby.players.len() == 1, "players: {:?}, sync: {:?}", gm.lobby.players, gm.room.sync());
}

View File

@@ -1,4 +1,4 @@
pub mod gamemaster;
// pub mod gamemaster;
pub mod player;
pub mod role;
pub mod lobby;