From 26adf882fb035da731e700de71954bfc74700523 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Sat, 1 Apr 2023 22:37:56 -0700 Subject: [PATCH] Adjust `match-v5` test for only one team's participants' IDs being returned --- riven/tests/tests_asia_jp.rs | 2 ++ riven/tests/testutils.rs | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/riven/tests/tests_asia_jp.rs b/riven/tests/tests_asia_jp.rs index 423b3a0..8cb8e89 100644 --- a/riven/tests/tests_asia_jp.rs +++ b/riven/tests/tests_asia_jp.rs @@ -30,6 +30,8 @@ static MATCHES: &[&str] = &[ // Illegal big `championId`s. https://github.com/RiotGames/developer-relations/issues/553 "JP1_267647303", "JP1_273343663", + // Only has participant IDs for blue team. + "JP1_391732436", ]; async_tests! { diff --git a/riven/tests/testutils.rs b/riven/tests/testutils.rs index 62c0e3e..5d58fe1 100644 --- a/riven/tests/testutils.rs +++ b/riven/tests/testutils.rs @@ -128,10 +128,12 @@ pub async fn match_v5_get( return Err(format!("Match {} should have participants.", matche)); } if m.metadata.participants.len() != m.info.participants.len() { - return Err(format!( + // Sometimes only returns match IDs for one team? JP1_391732436 + // Do not return error. + eprintln!( "Match {} participants do not line up with participant UUIDs.", matche - )); + ); } for participant in &m.info.participants { participant