✅ test: Fix tests broken by recent commits
parent
cdc890ad89
commit
11f4b0e65b
|
@ -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 ();
|
||||
|
||||
|
|
|
@ -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")),
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue