Riven/riven/tests
Mingwei Samuel 092ea34358 chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
..
README.md Update example proxy for v2, use workspaces. 2021-09-09 14:31:39 -07:00
test_ru.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_americas.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_asia_jp.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_europe.rs test: use `#[tokio_shared_rt::test]` instead of custom macro 2024-02-24 09:28:36 -08:00
tests_euw.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_euw_tft.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_kr.rs.ignored chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_la1.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_na.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_ph2.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_sg2.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_th2.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_tr.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_val_latam.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
tests_vn2.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00
testutils.rs chore: replace `lazy_static` with std `OnceLock` 2024-02-24 09:46:11 -08:00

README.md

Tests are divided up by region. This is because tests cannot share state, and therefore cannot share the rate limiting done within a RiotApi instance. However, rate limiting is separate for each region, so it is safe to send requests to different regions from different instances.

The tests within an individual file do share their RiotApi instance thanks to custom test runners and some macros I hacked together which are located in async_tests.rs. They are set up in a way to look like normal test output for fun and probably to confuse people.