Skip to content

Commit

Permalink
fix: verify different tags give different lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterPtato committed Apr 1, 2024
1 parent ff7a385 commit 4f12509
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion svc/pkg/mm/worker/tests/lobby_find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ async fn tagged_multiple_lobbies(ctx: TestCtx) {

let lobby_group = create_lobby_group(&ctx, None).await;

let _find_res1 = find_with_tags(
let find_res1 = find_with_tags(
&ctx,
FindRequest {
namespace_id: lobby_group.namespace_id,
Expand Down Expand Up @@ -922,6 +922,8 @@ async fn tagged_multiple_lobbies(ctx: TestCtx) {
.await
.unwrap();

assert_ne!(find_res1.lobby_id, find_res2.lobby_id, "found wrong lobby");

// This should iterate over the both of the previously created lobbies and skip the first one because
// it's tag doesn't match.
let find_res3 = find_with_tags(
Expand Down

0 comments on commit 4f12509

Please sign in to comment.