forked from mirror/Riven
Update `league_getforsummoner_tftbug` test
parent
76a48963e5
commit
650380cdf9
|
@ -47,19 +47,18 @@ async_tests!{
|
||||||
rassert!(!d.is_empty(), "Challenger shouldn't be empty.");
|
rassert!(!d.is_empty(), "Challenger shouldn't be empty.");
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
// // TO TEST THIS BUG: https://github.com/RiotGames/developer-relations/issues/572.
|
|
||||||
// league_getforsummoner_tftbug: async {
|
// TO TEST THIS BUG: https://github.com/RiotGames/developer-relations/issues/572.
|
||||||
// let summoner_fut = RIOT_API.summoner_v4().get_by_summoner_name(ROUTE, "dıshsoap");
|
league_getforsummoner_tftbug: async {
|
||||||
// let summoner = summoner_fut.await.map_err(|e| e.to_string())?.ok_or_else(|| "Failed to get \"dıshsoap\"".to_owned())?;
|
const SUMMONER_NAME: &'static str = "jessixa";
|
||||||
// let league_fut = RIOT_API.league_v4().get_league_entries_for_summoner(ROUTE, &*summoner.id);
|
let summoner_fut = RIOT_API.summoner_v4().get_by_summoner_name(ROUTE, SUMMONER_NAME);
|
||||||
// let league = league_fut.await.map_err(|e| e.to_string())?;
|
let summoner = summoner_fut.await.map_err(|e| e.to_string())?.ok_or_else(|| format!("Failed to get \"{}\"", SUMMONER_NAME))?;
|
||||||
// rassert_eq!(1, league.len()); // BRITTLE!
|
let league_fut = RIOT_API.league_v4().get_league_entries_for_summoner(ROUTE, &*summoner.id);
|
||||||
// #[allow(deprecated)]
|
let leagues = league_fut.await.map_err(|e| e.to_string())?;
|
||||||
// {
|
let tft_league = leagues.iter().find(|league| QueueType::RANKED_TFT_DOUBLE_UP == league.queue_type);
|
||||||
// rassert_eq!(league[0].queue_type, QueueType::RANKED_TFT_PAIRS);
|
rassert!(tft_league.is_some());
|
||||||
// }
|
Ok(())
|
||||||
// Ok(())
|
},
|
||||||
// },
|
|
||||||
|
|
||||||
// TODO: MATCH-V4 REMOVED.
|
// TODO: MATCH-V4 REMOVED.
|
||||||
// matchlist_get: async {
|
// matchlist_get: async {
|
||||||
|
|
Loading…
Reference in New Issue