forked from mirror/Riven
Update league_getforsummoner_tftbug
test
This commit is contained in:
parent
c9bca855f2
commit
0753fe1b34
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ 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.
|
||||||
league_getforsummoner_tftbug: async {
|
league_getforsummoner_tftbug: async {
|
||||||
const SUMMONER_NAME: &'static str = "jessixa";
|
const SUMMONER_NAME: &'static str = "LE ANTIFRAGILE";
|
||||||
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);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 RUST_LOG=riven=trace cargo test --features nightly,deny-unknown -- --nocapture
|
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 RUST_LOG=riven=debug cargo test --features nightly,deny-unknown -- --nocapture
|
||||||
|
|
Loading…
Reference in a new issue