summaryrefslogtreecommitdiff
path: root/tests/tail-2/pipe-f2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tail-2/pipe-f2.sh')
-rwxr-xr-xtests/tail-2/pipe-f2.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/tail-2/pipe-f2.sh b/tests/tail-2/pipe-f2.sh
index d91de5854..70fb3bdc1 100755
--- a/tests/tail-2/pipe-f2.sh
+++ b/tests/tail-2/pipe-f2.sh
@@ -32,11 +32,7 @@ fastpoll='-s.1 --max-unchanged-stats=1'
timeout 10 tail $fastpoll -f fifo > out & pid=$!
-check_tail_output()
-{
- local n_sec="$1"
- test -s out || { sleep $n_sec; return 1; }
-}
+check_tail_output() { sleep $1; test -s out; }
# Wait 12.7s for tail to write something.
retry_delay_ check_tail_output .1 7 || fail=1