Skip to content

Fix tests to build examples and run on a random port#330

Open
erickt wants to merge 1 commit intorustls:mainfrom
erickt:fix-tests
Open

Fix tests to build examples and run on a random port#330
erickt wants to merge 1 commit intorustls:mainfrom
erickt:fix-tests

Conversation

@erickt
Copy link
Contributor

@erickt erickt commented Feb 15, 2026

This makes two changes to the tests to make them a little more reliable:

  • The tests fail to compile when run with cargo test --no-default-features. This changes the tests to shell out to cargo run ... to run the examples with the reguired features.
  • It changes the test to use a random port rather than a fixed one, which might be used by the current system.

This makes two changes to the tests to make them a little more reliable:

* The tests fail to compile when run with `cargo test
  --no-default-features`. This changes the tests to shell out to `cargo
  run ...` to run the examples with the reguired features.
* It changes the test to use a random port rather than a fixed one,
  which might be used by the current system.
@erickt erickt force-pushed the fix-tests branch 2 times, most recently from 45a0405 to 712d758 Compare February 15, 2026 18:02
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

This commit has a lot going on, and I'd like it to be split into smaller commits that make one logical change:

  • Replace use of existing binaries with using cargo run
  • Using a random port
  • Potentially other commits with miscellaneous changes

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.

2 participants