feat(objects-test-utils): Add transport module and migrate objects-transport tests (PR3) #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements transport-layer test utilities in
objects-test-utilsand migrates allobjects-transporttests to use the shared utilities, completing PR3 from the test utilities consolidation roadmap.Changes
New
transport.rsModulenetwork_config(),network_config_with_relay())endpoint(),endpoint_with_key(),endpoint_with_config())secret_key())wait_short(),wait_medium(),wait_long())assert_node_ids_match()with#[track_caller])Migration
rand::rng()direct usage in tests → now usingtransport::secret_key()crates/objects-transport/tests/common/(no backward compatibility stubs)Test Results
✅ All tests passing:
Benefits
Roadmap Progress
Verification
Related to #13