🐛 Fix tests
parent
e59bb5b7bc
commit
b40eda4a69
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue