Skip to content

Commit

Permalink
tweak a test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Mar 27, 2024
1 parent 2a03e07 commit e556eac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/ott-balancer/src/balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,5 +837,17 @@ mod test {

// make sure the client is in the context
assert!(ctx.clients.contains_key(&client_id));

// make sure there is only one room in the monolith, with the client in it
assert!(ctx
.monoliths
.get(&monolith_id)
.unwrap()
.rooms()
.get(&room_name)
.unwrap()
.clients()
.contains(&client_id));
assert_eq!(ctx.monoliths.get(&monolith_id).unwrap().rooms().len(), 1);
}
}

0 comments on commit e556eac

Please sign in to comment.