Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Tune new "much stdout" test for runtime (#11635)

Alex Crichton24d5d24e72f5
diff --git a/tests/all/cli_tests.rs b/tests/all/cli_tests.rs
index fee75daf9a..18c7d8ced5 100644
--- a/tests/all/cli_tests.rs
+++ b/tests/all/cli_tests.rs
@@ -2176,10 +2176,10 @@ start a print 1234
}
fn run_much_stdout(component: &str, extra_flags: &[&str]) -> Result<()> {
- let total_write_size = 1 << 19;
+ let total_write_size = 1 << 18;
let expected = iter::repeat('a').take(total_write_size).collect::<String>();
- for i in 0..15 {
+ for i in 10..15 {
let string = iter::repeat('a').take(1 << i).collect::<String>();
let times = (total_write_size >> i).to_string();
println!("writing {} bytes {times} times", string.len());