forked from mirror/Riven
1
0
Fork 0

update tft bug test, Riot will make the breaking fix on Oct 3

https://twitter.com/RiotGamesDevRel/status/1701723426178650191
v/2.x.x
Mingwei Samuel 2023-09-16 18:10:31 -07:00
parent f79f2edab3
commit 9b08e058b7
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ async_tests! {
// summoner must have double-up rank. // summoner must have double-up rank.
league_getforsummoner_tftbug: async { league_getforsummoner_tftbug: async {
// TODO(mingwei): get summoner from leaderboard to avoid updating this all the time. // TODO(mingwei): get summoner from leaderboard to avoid updating this all the time.
const SUMMONER_NAME: &str = "jessixa"; const SUMMONER_NAME: &str = "Bobo TFT";
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);