mirror of
https://github.com/chatmail/relay.git
synced 2026-09-06 07:23:13 +00:00
test: place #[tokio::test] after rstest case macros (#192)
Otherwise only the first case is built.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user