🐛 Fix tests

main
_ 2020-11-30 15:55:14 +00:00
parent e59bb5b7bc
commit b40eda4a69
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,6 @@ use tokio::{
#[test] #[test]
fn end_to_end () { fn end_to_end () {
use maplit::*;
use reqwest::Client; use reqwest::Client;
use tracing::{debug, info}; use tracing::{debug, info};
@ -33,12 +32,13 @@ fn end_to_end () {
debug! ("Relay is expecting tripcode {}", tripcode); debug! ("Relay is expecting tripcode {}", tripcode);
let config_file = ptth_relay::config::file::Config { let config_file = ptth_relay::config::file::Config {
port: None, port: None,
servers: hashmap! { servers: vec! [
server_name.into () => ptth_relay::config::file::Server { ptth_relay::config::file::Server {
name: server_name.to_string (),
tripcode, tripcode,
display_name: None, display_name: None,
}, },
}, ],
}; };
let config = ptth_relay::config::Config::try_from (config_file).expect ("Can't load config"); let config = ptth_relay::config::Config::try_from (config_file).expect ("Can't load config");