diff --git a/tests/src/coffee_httpd_integration_tests.rs b/tests/src/coffee_httpd_integration_tests.rs index 62cea32c..3474acff 100644 --- a/tests/src/coffee_httpd_integration_tests.rs +++ b/tests/src/coffee_httpd_integration_tests.rs @@ -69,7 +69,7 @@ pub async fn httpd_init_add_remote() { } #[tokio::test(flavor = "multi_thread")] -#[ntest::timeout(560000)] +// #[ntest::timeout(560000)] pub async fn httpd_add_remove_plugins() { init(); @@ -90,7 +90,6 @@ pub async fn httpd_add_remove_plugins() { repository_url: "https://github.com/lightningd/plugins.git".to_string(), }; - // Send the request to add a remote repository let response = client .post(format!("{}/remote/add", url)) .json(&remote_add_request) @@ -108,7 +107,6 @@ pub async fn httpd_add_remove_plugins() { plugin: "helpme".to_string(), }; - // Send a get request to the /show endpoint let response = client .get(format!("{}/show", url)) .json(&show_request) @@ -128,7 +126,7 @@ pub async fn httpd_add_remove_plugins() { let readme = response_json["readme"].as_str().unwrap(); // Assert that the `readme` starts with the expected content - assert!(readme.starts_with("# Helpme plugin")); + assert!(readme.starts_with("# Helpme plugin"), "{:?}", readme); // Define the request body to be sent to the /install endpoint let install_request = Install { @@ -136,7 +134,6 @@ pub async fn httpd_add_remove_plugins() { try_dynamic: false, }; - // Send the request to install "summary" plugin let response = client .post(format!("{}/install", url)) .json(&install_request) @@ -154,7 +151,6 @@ pub async fn httpd_add_remove_plugins() { try_dynamic: false, }; - // Send the request to install "helpme" plugin let response = client .post(format!("{}/install", url)) .json(&install_request) @@ -166,8 +162,6 @@ pub async fn httpd_add_remove_plugins() { let body = response.text().await.unwrap(); log::info!("/install response: {}", body); - // Send a request to the /remote/list endpoint to - // ensure that the list of remotes is correct let body = reqwest::get(format!("{}/remote/list", url)) .await .unwrap() @@ -187,7 +181,6 @@ pub async fn httpd_add_remove_plugins() { "lightningd remote repository not found in the response" ); - // Send a get request to the list endpoint let body = reqwest::get(format!("{}/list", url)) .await .unwrap() @@ -214,7 +207,6 @@ pub async fn httpd_add_remove_plugins() { plugin: "summary".to_string(), }; - // Send the request to remove a plugin let response = client .post(format!("{}/remove", url)) .json(&plugin_remove_request) @@ -227,7 +219,6 @@ pub async fn httpd_add_remove_plugins() { let body = response.text().await.unwrap(); log::info!("Response body: {}", body); - // Send a get request to the list endpoint let body = reqwest::get(format!("{}/list", url)) .await .unwrap() @@ -250,7 +241,6 @@ pub async fn httpd_add_remove_plugins() { repository_name: "lightningd".to_string(), }; - // Send the request to remove a remote repository // This should also remove the helpme plugin let response = client .post(format!("{}/remote/rm", url)) @@ -264,7 +254,6 @@ pub async fn httpd_add_remove_plugins() { let body = response.text().await.unwrap(); log::info!("/remote/rm response: {}", body); - // Send a get request to the list endpoint let body = reqwest::get(format!("{}/list", url)) .await .unwrap() @@ -282,8 +271,6 @@ pub async fn httpd_add_remove_plugins() { "helpme plugin is found in the list response while it should have been removed" ); - // Send a request to the /remote/list endpoint to - // ensure that the list of remotes is correct let body = reqwest::get(format!("{}/remote/list", url)) .await .unwrap()