forked from mirror/Riven
1
0
Fork 0

Adjust `match-v5` test for only one team's participants' IDs being returned

users/mingwei/lints
Mingwei Samuel 2023-04-01 22:37:56 -07:00
parent ac46e74de4
commit 26adf882fb
2 changed files with 6 additions and 2 deletions

View File

@ -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! {

View File

@ -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