test: Fix tests broken by recent commits

main
_ 2020-12-14 14:17:52 +00:00
parent cdc890ad89
commit 11f4b0e65b
2 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@ mod tests {
port: Some (4000),
servers: vec! [],
iso: config::file::Isomorphic {
enable_scraper_auth: true,
enable_scraper_api: true,
dev_mode: self.valid_key.map (|key| config::file::DevMode {
scraper_key: Some (key_validity::ScraperKey::new (key.as_bytes ())),
}),
@ -274,7 +274,7 @@ mod tests {
let relay_state = Arc::new (RelayState::try_from (config).expect ("Can't create relay state"));
let actual = handle_scraper_api (input, relay_state, self.path_rest).await;
let actual = super::handle (input, relay_state, self.path_rest).await;
let actual = actual.expect ("Relay didn't respond");
let (actual_head, actual_body) = actual.into_parts ();

View File

@ -148,7 +148,7 @@ fn scraper_endpoints () {
],
iso: config::file::Isomorphic {
enable_scraper_auth: true,
enable_scraper_api: true,
dev_mode: Some (config::file::DevMode {
scraper_key: Some (key_validity::ScraperKey::new (b"bogus")),
}),