Skip to content

Commit fdfafa9

Browse files
authored
Merge pull request #686 from Luap99/bats-error
bats: remove fd 3 work around
2 parents da0f288 + d1df1fc commit fdfafa9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test/helpers.bash

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ function run_helper() {
5151
# stdout is only emitted upon error; this echo is to help a debugger
5252
echo "$_LOG_PROMPT $*"
5353

54-
# BATS hangs if a subprocess remains and keeps FD 3 open; this happens
55-
# if a process crashes unexpectedly without cleaning up subprocesses.
56-
run timeout --foreground -v --kill=10 10 "$@" 3>&-
54+
run timeout --foreground -v --kill=10 10 "$@"
5755
# without "quotes", multiple lines are glommed together into one
5856
if [ -n "$output" ]; then
5957
echo "$output"

0 commit comments

Comments
 (0)