Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix pytest race in test_spawn_broken_pipe()
The static `time.sleep(0.1)` was racy: On slow architectures like Debian mips [1] it repeatedly fails, and it even sometimes fails on GitHub actions. Keep writing until the transport closes, so that we are guaranteed to eventually run into a BrokenPipeError. Fixes #19469 [1] https://buildd.debian.org/status/logs.php?pkg=cockpit&ver=302-1&arch=mips64el
- Loading branch information