Skip to content

Gate tests with features they test#3864

Merged
seanmonstar merged 1 commit into
hyperium:masterfrom
WhyNotHugo:test-features
Mar 24, 2025
Merged

Gate tests with features they test#3864
seanmonstar merged 1 commit into
hyperium:masterfrom
WhyNotHugo:test-features

Conversation

@WhyNotHugo

Copy link
Copy Markdown
Contributor

Running cargo test fails to compile because tests rely on types which are behind a #[cfg(…)] which is disabled by default.

Add a #[cfg(…)] directive to tests which rely on types which are also behind a #[cfg(…)] directive, so that these tests run only if the types on which they depend exist.

Running `cargo test` fails to compile because tests rely on types which
are behind a #[cfg(…)] which is disabled by default.

Add a #[cfg(…)] directive to tests which rely on types which are also
behind a #[cfg(…)] directive, so that these tests run only if the types
on which they depend exist.

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the clean up!

@seanmonstar seanmonstar merged commit c449528 into hyperium:master Mar 24, 2025
@WhyNotHugo WhyNotHugo deleted the test-features branch March 24, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants