forked from mirror/Riven
1
0
Fork 0

Fix tft doubleup test

users/mingwei/lints
Mingwei Samuel 2023-02-18 12:13:41 -08:00
parent f51a67c1fc
commit a11b6874f6
1 changed files with 2 additions and 1 deletions

View File

@ -49,8 +49,9 @@ async_tests!{
}, },
// TO TEST THIS BUG: https://github.com/RiotGames/developer-relations/issues/572. // TO TEST THIS BUG: https://github.com/RiotGames/developer-relations/issues/572.
// summoner must have double-up rank.
league_getforsummoner_tftbug: async { league_getforsummoner_tftbug: async {
const SUMMONER_NAME: &'static str = "LE ANTIFRAGILE"; const SUMMONER_NAME: &'static str = "rebocca";
let summoner_fut = RIOT_API.summoner_v4().get_by_summoner_name(ROUTE, SUMMONER_NAME); let summoner_fut = RIOT_API.summoner_v4().get_by_summoner_name(ROUTE, SUMMONER_NAME);
let summoner = summoner_fut.await.map_err(|e| e.to_string())?.ok_or_else(|| format!("Failed to get \"{}\"", SUMMONER_NAME))?; let summoner = summoner_fut.await.map_err(|e| e.to_string())?.ok_or_else(|| format!("Failed to get \"{}\"", SUMMONER_NAME))?;
let league_fut = RIOT_API.league_v4().get_league_entries_for_summoner(ROUTE, &*summoner.id); let league_fut = RIOT_API.league_v4().get_league_entries_for_summoner(ROUTE, &*summoner.id);