A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Fix a flaky test failure (#14489)
Alex Crichtonf8cfce4ff5f6
diff --git a/crates/test-programs/src/p3/http.rs b/crates/test-programs/src/p3/http.rsindex acea827115..c2465374dd 100644--- a/crates/test-programs/src/p3/http.rs+++ b/crates/test-programs/src/p3/http.rs@@ -123,7 +123,9 @@ pub async fn request_with_transmit_result(async {if let Some(buf) = body {let remaining = contents_tx.write_all(buf.into()).await;- assert!(remaining.is_empty());+ if !remaining.is_empty() {+ return;+ }}drop(contents_tx);// This can fail in HTTP/1.1, since the connection might already be closed