mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Speedup binstalk-git-repo-api unit testing (#1731)
* Share `remote::Client` between tests when in cargo-test Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Run rate-limited binstalk-git-repo-api test in serial Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Update client-side rate limit to 1 request per 300ms Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Reduce test cases in `rate_limited_test_has_release_artifact_and_download_artifacts` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add `cargo-nextest` that I forgot Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix unit testing: Pass auth-token to restful API to avoid rate limit Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
4d7a91aa4c
commit
6622bf1ae3
7 changed files with 75 additions and 35 deletions
6
.config/nextest.toml
Normal file
6
.config/nextest.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[test-groups]
|
||||
rate-limited = { max-threads = 1 }
|
||||
|
||||
[[profile.default.overrides]]
|
||||
filter = 'test(rate_limited::)'
|
||||
test-group = 'rate-limited'
|
Loading…
Add table
Add a link
Reference in a new issue