Repair getting x-failed-recipients header, all tests passing now

This commit is contained in:
Hocuri
2020-06-10 15:27:20 +02:00
parent 777df24c75
commit bde97b20e9
3 changed files with 12 additions and 36 deletions

View File

@@ -41,13 +41,14 @@ pub(crate) async fn dummy_context() -> TestContext {
}
pub(crate) async fn configured_offline_context() -> TestContext {
configured_offline_context_with_addr("alice@example.org").await
}
pub(crate) async fn configured_offline_context_with_addr(addr: &str) -> TestContext {
let t = dummy_context().await;
t.ctx.set_config(Config::Addr, Some(addr)).await.unwrap();
t.ctx
.set_config(Config::Addr, Some("alice@example.org"))
.await
.unwrap();
t.ctx
.set_config(Config::ConfiguredAddr, Some("alice@example.org"))
.set_config(Config::ConfiguredAddr, Some(addr))
.await
.unwrap();
t.ctx