http server test, and also unignore http client test

This commit is contained in:
Danil Platonov
2026-04-11 08:59:01 -07:00
parent 87f97c7e5c
commit 081f3c0827
3 changed files with 41 additions and 8 deletions

View File

@@ -155,12 +155,14 @@ fn issue_rename_file() {
load_module_test("tests-pl/issue_rename_file.pl", "file_renamed");
}
#[serial]
#[test]
#[cfg(feature = "http")]
#[cfg(not(target_arch = "wasm32"))]
#[cfg_attr(miri, ignore = "it takes too long to run")]
#[cfg_attr(not(miri), ignore = "flaky due to network requests")]
fn http_open_hanging() {
std::env::set_var("PROLOG", env!("CARGO_BIN_EXE_scryer-prolog"));
load_module_test_with_tokio_runtime(
"tests-pl/issue-http_open-hanging.pl",
"received response with status code:200\nreceived response with status code:200\nreceived response with status code:200\nreceived response with status code:200\nreceived response with status code:200\n"