Temp fix so functional tests doesnt stop each other

This commit is contained in:
Martin Slot 2023-11-28 10:35:30 +01:00
parent bed7194cf7
commit 155b25f69e
1 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ use prost::Message;
#[test]
fn does_not_start_when_calling_stop_before_start() {
let mut host = Host::new(ConnectOptions::new(String::from("127.0.0.1"), 6666));
let mut host = Host::new(ConnectOptions::new(String::from("127.0.0.1"), 6664));
match host.stop() {
Ok(_) => println!("host stopped"),
@ -30,7 +30,7 @@ fn does_not_start_when_calling_stop_before_start() {
#[test]
fn can_start_and_stop_gracefully_after_entering_listening() {
let mut host = Host::new(ConnectOptions::new(String::from("127.0.0.1"), 6666));
let mut host = Host::new(ConnectOptions::new(String::from("127.0.0.1"), 6665));
match host.start() {
Ok(_) => println!("host started"),
@ -52,7 +52,7 @@ fn can_start_and_stop_gracefully_after_entering_listening() {
#[test]
fn can_add_one_action_and_start() {
let mut host = Host::new(ConnectOptions::new(String::from("127.0.0.1"), 6666));
let mut host = Host::new(ConnectOptions::new(String::from("127.0.0.1"), 6667));
let test_action = ServerTestAction;
host.add_action("route/one", Box::new(test_action));
@ -76,7 +76,7 @@ fn can_add_one_action_and_start() {
#[test]
fn can_add_one_action_and_start_and_call_it() {
let connect_options = ConnectOptions::new(String::from("127.0.0.1"), 6666);
let connect_options = ConnectOptions::new(String::from("127.0.0.1"), 6668);
let mut host = Host::new(connect_options.clone());
let test_action = ServerTestAction;
host.add_action("route/one", Box::new(test_action));
@ -88,7 +88,7 @@ fn can_add_one_action_and_start_and_call_it() {
}
}
thread::sleep(time::Duration::from_millis(1000)); // we need a bit of time for the server to start
thread::sleep(time::Duration::from_millis(10)); // we need a bit of time for the server to start
let client = StreamClient::new(connect_options);
let payload = Payload {