Add stress testing for quota-lock and refactor test guard usage

This commit is contained in:
David Osipov
2026-03-21 15:54:14 +04:00
parent c8632de5b6
commit c1ee43fbac
6 changed files with 60 additions and 47 deletions
+12
View File
@@ -45,6 +45,18 @@ jobs:
- name: Run tests
run: cargo test --verbose
- name: Stress quota-lock suites (PR only)
if: github.event_name == 'pull_request'
env:
RUST_TEST_THREADS: 16
run: |
set -euo pipefail
for i in $(seq 1 12); do
echo "[quota-lock-stress] iteration ${i}/12"
cargo test quota_lock_ --bin telemt -- --nocapture --test-threads 16
cargo test relay_quota_wake --bin telemt -- --nocapture --test-threads 16
done
# clippy dont fail on warnings because of active development of telemt
# and many warnings
- name: Run clippy