Bounty: $20 (LT)
Area: v2/services/market_stream.rb
Current state: The market stream service documents reconnect/backoff behavior, but the backoff parameters are not covered by executable tests and regressions would be hard to detect.
What is needed: Add focused tests around the reconnect backoff calculation and make the behavior easy to validate without opening real network connections.
Acceptance criteria:
- Extract or expose a small testable backoff helper without changing the public stream behavior.
- Cover initial delay, exponential growth, maximum cap, and jitter bounds.
- Keep production defaults unchanged.
- Ensure tests do not require external network access.
- Document the validation command in the PR body.
Required validation:
- Run python3 build.py
- Include the generated diagnostic .logd artifact from diagnostic/build-XXX.logd in the PR; also include diagnostic/build-XXX.json if present
- Use .github/pull_request_template.md for your submission
Bounty: $20 (LT)
Area: v2/services/market_stream.rb
Current state: The market stream service documents reconnect/backoff behavior, but the backoff parameters are not covered by executable tests and regressions would be hard to detect.
What is needed: Add focused tests around the reconnect backoff calculation and make the behavior easy to validate without opening real network connections.
Acceptance criteria:
Required validation: