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