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