update tft tests

pull/56/head
Mingwei Samuel 2023-06-16 23:17:31 -07:00
parent bf51ba0a83
commit 3253fa4ec2
1 changed files with 4 additions and 4 deletions

View File

@ -28,14 +28,14 @@ async_tests! {
// let _s = p.await.map_err(|e| e.to_string())?; // let _s = p.await.map_err(|e| e.to_string())?;
// Ok(()) // Ok(())
// }, // },
tftleaguev1_getchallengerleague: async { tftleaguev1_gettopratedladder: async {
let p = RIOT_API.tft_league_v1().get_challenger_league(ROUTE); let p = RIOT_API.tft_league_v1().get_top_rated_ladder(ROUTE, QueueType::RANKED_TFT_TURBO);
let l = p.await.map_err(|e| e.to_string())?; let l = p.await.map_err(|e| e.to_string())?;
rassert!(l.entries.len() > 10, "Expected a few challenger players, got: {}.", l.entries.len()); rassert!(l.len() > 10, "Expected a few ranked players, got: {}.", l.len());
Ok(()) Ok(())
}, },
tftmatchv1_getmatch: async { tftmatchv1_getmatch: async {
let p = RIOT_API.tft_match_v1().get_match(ROUTE.to_regional(), "EUW1_4568680990"); let p = RIOT_API.tft_match_v1().get_match(ROUTE.to_regional(), "EUW1_6455483163");
let _m = p.await.map_err(|e| e.to_string())?.ok_or("Failed to get TFT match.".to_owned())?; let _m = p.await.map_err(|e| e.to_string())?.ok_or("Failed to get TFT match.".to_owned())?;
Ok(()) Ok(())
}, },