forked from mirror/Riven
1
0
Fork 0

Ignore `league_getforsummoner_tftbug` test for now

MingweiSamuel-patch-1
Mingwei Samuel 2022-06-20 20:50:17 -07:00
parent bfa9bdc36e
commit 713995491e
1 changed files with 13 additions and 13 deletions

View File

@ -47,19 +47,19 @@ async_tests!{
rassert!(!d.is_empty(), "Challenger shouldn't be empty.");
Ok(())
},
// TO TEST THIS BUG: https://github.com/RiotGames/developer-relations/issues/572.
league_getforsummoner_tftbug: async {
let summoner_fut = RIOT_API.summoner_v4().get_by_summoner_name(ROUTE, "TheNicoNi");
let summoner = summoner_fut.await.map_err(|e| e.to_string())?.ok_or_else(|| "Failed to get \"TheNicoNi\"".to_owned())?;
let league_fut = RIOT_API.league_v4().get_league_entries_for_summoner(ROUTE, &*summoner.id);
let league = league_fut.await.map_err(|e| e.to_string())?;
rassert_eq!(1, league.len()); // BRITTLE!
#[allow(deprecated)]
{
rassert_eq!(league[0].queue_type, QueueType::RANKED_TFT_PAIRS);
}
Ok(())
},
// // TO TEST THIS BUG: https://github.com/RiotGames/developer-relations/issues/572.
// league_getforsummoner_tftbug: async {
// let summoner_fut = RIOT_API.summoner_v4().get_by_summoner_name(ROUTE, "dıshsoap");
// let summoner = summoner_fut.await.map_err(|e| e.to_string())?.ok_or_else(|| "Failed to get \"dıshsoap\"".to_owned())?;
// let league_fut = RIOT_API.league_v4().get_league_entries_for_summoner(ROUTE, &*summoner.id);
// let league = league_fut.await.map_err(|e| e.to_string())?;
// rassert_eq!(1, league.len()); // BRITTLE!
// #[allow(deprecated)]
// {
// rassert_eq!(league[0].queue_type, QueueType::RANKED_TFT_PAIRS);
// }
// Ok(())
// },
// TODO: MATCH-V4 REMOVED.
// matchlist_get: async {