Skip to content

Commit

Permalink
[spec/process-sub] Workaround for flakiness in test
Browse files Browse the repository at this point in the history
This is issue #1007
  • Loading branch information
Andy C committed Nov 16, 2022
1 parent b8105e2 commit 74a7562
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/process-sub.test.sh
Expand Up @@ -150,6 +150,14 @@ case $SH in (zsh) exit ;; esac
f() {
cat <(seq 1; exit 1) | {
cat <(seq 2; exit 2) <(seq 3; exit 3)

# 2022-11 workaround for race condition: sometimes we get pipeline=141 4
# instead of pipeline=0 4, which means that the first 'cat' got SIGPIPE.
# If we make this part of the pipeline take longer, then 'cat' should have
# a chance to finish.

sleep 0.01

(exit 4)
}
echo status=$?
Expand Down

0 comments on commit 74a7562

Please sign in to comment.