From 4c9952b3855c3e9e7ecbd5f487b7ee06c7ca10a1 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Fri, 16 Feb 2024 15:57:44 -0800 Subject: [PATCH] Update tests for new `endOfGameResult` fields --- riven/tests/tests_americas.rs | 4 +--- riven/tests/tests_euw.rs | 5 ++++- riven/tests/tests_euw_tft.rs | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/riven/tests/tests_americas.rs b/riven/tests/tests_americas.rs index 6515b4d..6696246 100644 --- a/riven/tests/tests_americas.rs +++ b/riven/tests/tests_americas.rs @@ -11,10 +11,8 @@ use testutils::*; const ROUTE: RegionalRoute = RegionalRoute::AMERICAS; static MATCHES: &[&str] = &[ - // New games with `match-v5.ParticipantDto.challenges` field. - "NA1_4209556127", - "NA1_4212715433", "NA1_4265913704", // `match-v5.ParticipantDto.challenges.mejaisFullStackInTime` + "NA1_4924008147", ]; async_tests! { diff --git a/riven/tests/tests_euw.rs b/riven/tests/tests_euw.rs index 35543cc..b93ac08 100644 --- a/riven/tests/tests_euw.rs +++ b/riven/tests/tests_euw.rs @@ -52,7 +52,10 @@ async_tests! { let featured_p = RIOT_API.spectator_v4().get_featured_games(ROUTE); let featured = featured_p.await.map_err(|e| e.to_string())?; - rassert!(!featured.game_list.is_empty()); + if featured.game_list.is_empty() { + eprintln!("Featured game list is empty!"); + return Ok(()); + } // let summoner_name = &featured.game_list[0].participants[0].summoner_name; // let summoner_p = RIOT_API.summoner_v4().get_by_summoner_name(ROUTE, summoner_name); diff --git a/riven/tests/tests_euw_tft.rs b/riven/tests/tests_euw_tft.rs index a147406..21e43f9 100644 --- a/riven/tests/tests_euw_tft.rs +++ b/riven/tests/tests_euw_tft.rs @@ -15,6 +15,8 @@ static TFT_MATCHES: &[&str] = &[ // https://github.com/MingweiSamuel/Riven/pull/62 // https://github.com/MingweiSamuel/riotapi-schema/pull/43 "EUW1_6786745342", + // 2024-02-16 + "EUW1_6807630149", ]; async_tests! {