tests: fix tests

main
_ 2021-04-27 14:31:32 -05:00
parent b659d6b74f
commit 4a73f48c68
4 changed files with 5 additions and 1 deletions

View File

@ -295,6 +295,7 @@ mod tests {
scraper_keys: Some (vec! [
self.valid_key.map (|x| key_validity::ScraperKey::new_30_day ("automated test", x.as_bytes ())),
].into_iter ().filter_map (|x| x).collect ()),
news_url: None,
};
let config = config::Config::try_from (config_file).expect ("Can't load config");

View File

@ -4,7 +4,7 @@
//! behind a firewall, because it only makes outgoing HTTP connections
//! to a PTTH relay.
//!
//! ```
//! ```text
//! View from outside the PTTH tunnel:
//!
//! * HTTP client

View File

@ -42,6 +42,7 @@ async fn main () -> anyhow::Result <()> {
},
]),
scraper_keys: None,
news_url: None,
};
let config = ptth_relay::config::Config::try_from (config_file).expect ("Can't load config");

View File

@ -110,6 +110,7 @@ impl TestingRelay {
},
]),
scraper_keys: None,
news_url: None,
};
let cfg = config::Config::try_from (config_file).expect ("Can't load config");
@ -282,6 +283,7 @@ async fn scraper_endpoints () {
scraper_keys: Some (vec! [
key_validity::ScraperKey::new_30_day ("automated testing", b"bogus")
]),
news_url: None,
};
let config = config::Config::try_from (config_file).expect ("Can't load config");