Refs #44
File: crates/charon-executor/src/submit.rs (tests)
Problem
Two unit tests cover default timeout value and syntactically invalid URL. Untested:
- Timeout retry path (would require tokio::time::pause)
- HTTP 429/503 classification — does it currently fall through to Err?
- https-only scheme enforcement (after sibling fix lands)
- Successful hash parse from JSON-RPC response
- Reconnect on dropped connection
Live submission test is deferred per PR description, but the above are testable with httpmock or wiremock without a live endpoint.
Fix
Add httpmock to dev-dependencies. Add tests for each of the five scenarios above. Add tokio::time::pause coverage for the timeout path.
Refs #44
File: crates/charon-executor/src/submit.rs (tests)
Problem
Two unit tests cover default timeout value and syntactically invalid URL. Untested:
Live submission test is deferred per PR description, but the above are testable with httpmock or wiremock without a live endpoint.
Fix
Add httpmock to dev-dependencies. Add tests for each of the five scenarios above. Add tokio::time::pause coverage for the timeout path.