spamassassin-milter/tests/authenticated_sender.rs

17 lines
342 B
Rust
Raw Normal View History

2020-02-12 08:35:32 +00:00
mod common;
pub use common::*;
2020-02-12 08:35:32 +00:00
2022-02-21 17:58:24 +00:00
#[tokio::test]
async fn authenticated_sender() {
let milter = SpamAssassinMilter::spawn(LOCALHOST, Default::default())
.await
.unwrap();
2020-02-12 08:35:32 +00:00
2022-02-21 17:58:24 +00:00
let exit_code = run_miltertest(file!(), milter.addr()).await.unwrap();
2020-02-12 08:35:32 +00:00
2022-02-21 17:58:24 +00:00
milter.shutdown().await.unwrap();
2020-02-12 08:35:32 +00:00
2022-02-21 17:58:24 +00:00
assert!(exit_code.success());
2020-02-12 08:35:32 +00:00
}