Skip to content

Commit a83e11e

Browse files
alexcrichtonbongjunj
authored andcommitted
Tune new "much stdout" test for runtime (bytecodealliance#11635)
On Pulley platforms this test is taking 40+ minutes in CI. Locally it took 2 minutes to complete. After this change it should still roughly test the same thing but takes less than 100ms to complete locally.
1 parent cd701fc commit a83e11e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/all/cli_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2176,10 +2176,10 @@ start a print 1234
21762176
}
21772177

21782178
fn run_much_stdout(component: &str, extra_flags: &[&str]) -> Result<()> {
2179-
let total_write_size = 1 << 19;
2179+
let total_write_size = 1 << 18;
21802180
let expected = iter::repeat('a').take(total_write_size).collect::<String>();
21812181

2182-
for i in 0..15 {
2182+
for i in 10..15 {
21832183
let string = iter::repeat('a').take(1 << i).collect::<String>();
21842184
let times = (total_write_size >> i).to_string();
21852185
println!("writing {} bytes {times} times", string.len());

0 commit comments

Comments
 (0)