forked from mirror/Riven
Adjust `match-v5` test for only one team's participants' IDs being returned
parent
ac46e74de4
commit
26adf882fb
|
@ -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! {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue