From fd892b14511b515e89b6312bdacee49d4c6abae5 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Fri, 19 Nov 2021 18:37:43 -0800 Subject: [PATCH] Add test for bug https://github.com/RiotGames/developer-relations/issues/572 --- riven/tests/tests_na.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/riven/tests/tests_na.rs b/riven/tests/tests_na.rs index 1ad35b8..dbe803d 100644 --- a/riven/tests/tests_na.rs +++ b/riven/tests/tests_na.rs @@ -47,6 +47,15 @@ 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())?; + let _ = league; + Ok(()) + }, // TODO: MATCH-V4 REMOVED. // matchlist_get: async {