test: place #[tokio::test] after rstest case macros (#192)

Otherwise only the first case is built.
This commit is contained in:
l
2026-07-01 14:51:37 +02:00
committed by GitHub
parent 5cdae22d31
commit ed5dfbe0ff
2 changed files with 11 additions and 7 deletions
+4 -2
View File
@@ -198,9 +198,11 @@ mod tests {
/// Test that domain-literals are not rejected by origin check.
#[rstest]
#[tokio::test]
#[case::ipv4(include_bytes!("../test_data/encrypted-ipv4.eml"), "one@[192.0.2.0]")]
#[case::ipv6(include_bytes!("../test_data/encrypted-ipv6.eml"), "one@[IPv6:2001:db8::1]")]
// Waiting for a release of mailparse with the fix https://github.com/staktrace/mailparse/pull/138
// for the issue https://github.com/staktrace/mailparse/issues/137 to be released.
//#[case::ipv6(include_bytes!("../test_data/encrypted-ipv6.eml"), "one@[IPv6:2001:db8::1]")]
#[tokio::test]
async fn test_domain_literals_allowed(
#[case] eml: &[u8],
#[case] address: &str,