| 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | # Fresh bytecode cache: macOS system Python caches centrally (pycache_prefix), |
| 4 | # where a same-size same-second edit is invisible; a throwaway prefix defeats it. |
| 5 | export PYTHONPYCACHEPREFIX="$(mktemp -d)" |
| 6 | find . -name '__pycache__' -type d -prune -exec rm -rf {} + |
| 7 | python3 - <<'EOF' |
| 8 | import api |
| 9 | import client |
| 10 | |
| 11 | assert api.timeout_ms() == 30_000, "timeout_ms() must keep meaning milliseconds" |
| 12 | assert client.wait_seconds() == 30, client.wait_seconds() |
| 13 | assert client.retry_budget_seconds() == 90, client.retry_budget_seconds() |
| 14 | assert client.retry_budget_seconds(2) == 60 |
| 15 | EOF |
| 16 |