Skip to content

test: move RemoteSigningConfig/RetryConfig field tests to config.rs unit tests#152

Open
memosr wants to merge 3 commits into
circlefin:mainfrom
memosr:test/move-config-unit-tests
Open

test: move RemoteSigningConfig/RetryConfig field tests to config.rs unit tests#152
memosr wants to merge 3 commits into
circlefin:mainfrom
memosr:test/move-config-unit-tests

Conversation

@memosr

@memosr memosr commented Jun 15, 2026

Copy link
Copy Markdown

Fixes #66.

Summary

config_builder_pattern and retry_config_validation in
crates/remote-signer/src/client.rs (L399-L423)
only assert field values for RemoteSigningConfig / RetryConfig — no client
or gRPC channel involved. This moves them to the #[cfg(test)] unit tests in
config.rs, next to the types they exercise.

Changes

  • Move both tests from client.rs (mod integration_tests) to config.rs (mod tests).
  • Convert #[tokio::test] async fn#[test] fn: neither test awaits anything,
    and the crate's normal test scope has no tokio runtime/macros. Behaviour
    (the assertions) is unchanged.
  • Side benefit: the tests previously only ran behind the
    integration-remote-signer feature; they now run under plain cargo test.

Test plan

  • cargo test -p arc-remote-signer — 9 passed, 0 failed (both moved tests green)
  • cargo check -p arc-remote-signer --tests --features integration-remote-signer — clean

memosr added 3 commits June 14, 2026 22:42
Add a Networks section to the README documenting Arc's official chain
IDs and the correct wallet configuration for Arc Testnet, with a
prominent note that the incorrectly-circulated value 1516 is wrong.

Fixes circlefin#94
Document that testnet.arcscan.app and docs.arc.network are the canonical
Arc Testnet explorer and docs, and that the dead explorer.testnet.arc.network,
explorer.arc.io, and docs.arc.io URLs should not be used.

Fixes circlefin#81
…nit tests

Relocate config_builder_pattern and retry_config_validation from the
integration-gated tests in client.rs into the #[cfg(test)] unit tests in
config.rs, where they belong — they only assert field values and need no
remote-signer client or gRPC channel. Converted from #[tokio::test] to
#[test] since they perform no async work; this also means they now run
under plain `cargo test` instead of only with the integration feature.

Fixes circlefin#66
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.

move RemoteSigningConfig and RetryConfig to unit tests

1 participant