Skip to content

test(monero-rpc-pool): add unit tests for parsing, database, pool and proxy (bounty #801) - #1204

Open
BlankHtmlPage wants to merge 1 commit into
eigenwallet:masterfrom
BlankHtmlPage:test-monero-rpc-pool
Open

BlankHtmlPage wants to merge 1 commit into
eigenwallet:masterfrom
BlankHtmlPage:test-monero-rpc-pool

Conversation

@BlankHtmlPage

@BlankHtmlPage BlankHtmlPage commented Sep 19, 2026

Copy link
Copy Markdown

Covers parsing and formatting, database and migrations, pool status and statistics broadcast, proxy end to end handling, network connection reuse, bandwidth window, startup status and stats endpoint.

Verified locally: 32/32 passed on all runs, cargo fmt --check -p monero-rpc-pool is clean.

AI was used for code (GLM-5.3 by Z.ai in Pi coding agent); I ran the tests and authored the commit and this PR myself.

No production changes. tempfile was added as a dev-dependency, because the database tests need their own SQLite file, swap and monero-sys already use it; plus it was already in Cargo.lock.

While running the tests, I've hit three things (didn't touch any):

  • monero-rpc-pool bin doesn't compile (rustls ring feature isn't enabled)
  • health-check timestamps always return None, even if a timestamp was recorded
  • monerod object errors count as success, due to how the JSON RPC parses errors (only matches error fields that are a string)

The workspace test job already fails at base commit 0e17c7f (swap-core, swap-machine); this PR doesn't touch either.

Related to #801

… proxy

Covers parsing and formatting, database
and migrations, pool status and statistics broadcast,
proxy end to end handling, network connection reuse,
bandwidth window, start up status and stats endpoint.

Tests live in src/ because CI runs `cargo test --lib`,
which never sees a tests/ directory.

Verified locally: 32/32 passed on multiple runs,
`cargo fmt --check -p monero-rpc-pool` is clean.

No production changes. `tempfile` was added as
a dev-dependency, because the tests need their
own SQLite file, swap and `monero-sys` already
use it; plus it was already in Cargo.lock.
@BlankHtmlPage
BlankHtmlPage marked this pull request as ready for review September 21, 2026 11:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant