✅ tests: fix tests
parent
b659d6b74f
commit
4a73f48c68
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue