From 82283712fffea2d60b13134a7abf3a32fa83bf4f Mon Sep 17 00:00:00 2001 From: MasterPtato <23087326+MasterPtato@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:58:40 +0000 Subject: [PATCH] fix: verify different tags give different lobby (#620) ## Changes --- svc/pkg/mm/worker/tests/lobby_find.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svc/pkg/mm/worker/tests/lobby_find.rs b/svc/pkg/mm/worker/tests/lobby_find.rs index 939b830b4..f014bad17 100644 --- a/svc/pkg/mm/worker/tests/lobby_find.rs +++ b/svc/pkg/mm/worker/tests/lobby_find.rs @@ -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, @@ -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(