Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky tests in preview2 streams (#6763)
* preview2::pipe sink_write_stream test bugfix I didn't realize this test was racy, but it makes sense because the worker is consuming these writes in another thread. usually the foreground thread wins, but we observed the other case once in CI * fix wasi-preview2-components-sync poll_oneoff_stdio flaky test I made a typo translating the sync calls to async calls, and in the sync implementation stream::blocking_write was calling async stream::write, so it was missing the logic to make the write blocking. This would in turn cause panics in rust's std::io::stdio::print_to when writes return less than the length of the input. thank you to @silentbicycle for autoclave, which we used to reproduce this bug.
- Loading branch information