mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-27 03:16:33 +00:00
Adjust match-v5
test for only one team's participants' IDs being returned
This commit is contained in:
parent
ac46e74de4
commit
26adf882fb
2 changed files with 6 additions and 2 deletions
|
@ -30,6 +30,8 @@ static MATCHES: &[&str] = &[
|
||||||
// Illegal big `championId`s. https://github.com/RiotGames/developer-relations/issues/553
|
// Illegal big `championId`s. https://github.com/RiotGames/developer-relations/issues/553
|
||||||
"JP1_267647303",
|
"JP1_267647303",
|
||||||
"JP1_273343663",
|
"JP1_273343663",
|
||||||
|
// Only has participant IDs for blue team.
|
||||||
|
"JP1_391732436",
|
||||||
];
|
];
|
||||||
|
|
||||||
async_tests! {
|
async_tests! {
|
||||||
|
|
|
@ -128,10 +128,12 @@ pub async fn match_v5_get(
|
||||||
return Err(format!("Match {} should have participants.", matche));
|
return Err(format!("Match {} should have participants.", matche));
|
||||||
}
|
}
|
||||||
if m.metadata.participants.len() != m.info.participants.len() {
|
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.",
|
"Match {} participants do not line up with participant UUIDs.",
|
||||||
matche
|
matche
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
for participant in &m.info.participants {
|
for participant in &m.info.participants {
|
||||||
participant
|
participant
|
||||||
|
|
Loading…
Reference in a new issue