diff --git a/tests/cli_tests/http_echo.rs b/tests/cli_tests/http_echo.rs index 92b00b09..61c76e52 100644 --- a/tests/cli_tests/http_echo.rs +++ b/tests/cli_tests/http_echo.rs @@ -3,12 +3,13 @@ use super::utils; #[tokio::test] #[ignore] async fn test_http_echo() { - let _guard = utils::RamaService::echo(64101); + let _guard = utils::RamaService::echo(63101); - let lines = utils::RamaService::http(vec![":64101"]).unwrap(); + let lines = utils::RamaService::http(vec!["http://127.0.0.1:63101"]).unwrap(); assert!(lines.contains("HTTP/1.1 200 OK"), "lines: {:?}", lines); - let lines = utils::RamaService::http(vec![":64101", "foo:bar", "a=4", "q==1"]).unwrap(); + let lines = + utils::RamaService::http(vec!["http://127.0.0.1:63101", "foo:bar", "a=4", "q==1"]).unwrap(); assert!(lines.contains("HTTP/1.1 200 OK"), "lines: {:?}", lines); assert!(lines.contains(r##""method":"POST""##), "lines: {:?}", lines); assert!(lines.contains(r##""foo","bar""##), "lines: {:?}", lines); diff --git a/tests/cli_tests/http_ip.rs b/tests/cli_tests/http_ip.rs index ca63a332..be521753 100644 --- a/tests/cli_tests/http_ip.rs +++ b/tests/cli_tests/http_ip.rs @@ -3,9 +3,9 @@ use super::utils; #[tokio::test] #[ignore] async fn test_http_ip() { - let _guard = utils::RamaService::ip(64100); + let _guard = utils::RamaService::ip(63100); - let lines = utils::RamaService::http(vec![":64100"]).unwrap(); + let lines = utils::RamaService::http(vec!["http://127.0.0.1:63100"]).unwrap(); assert!(lines.contains("HTTP/1.1 200 OK")); assert!(lines.contains("127.0.0.1:")); } diff --git a/tests/cli_tests/utils/mod.rs b/tests/cli_tests/utils/mod.rs index e50bb630..fbd660b2 100644 --- a/tests/cli_tests/utils/mod.rs +++ b/tests/cli_tests/utils/mod.rs @@ -42,7 +42,7 @@ impl RamaService { thread::spawn(move || { for line in stdout { let line = line.unwrap(); - println!("rama ip >> {}", line); + eprintln!("rama ip >> {}", line); } });