From d467e95e1c9402d20b9cbb4c0b371ec31f8890b6 Mon Sep 17 00:00:00 2001 From: qianlongzt <18493471+qianlongzt@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:18:20 +0800 Subject: [PATCH] fix(test): remove removed flag --- integration/test.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/test.bats b/integration/test.bats index ec134ca..5cf6b85 100755 --- a/integration/test.bats +++ b/integration/test.bats @@ -123,13 +123,13 @@ wait_for() { # sleep 30 seconds occur found bug # FIXME: other way to detect sudo timeout 30s unshare --fork --pid --mount-proc \ - "${BATS_TEST_DIRNAME}/../supercronic" -reap "${BATS_TEST_DIRNAME}/normal.crontab" >"$out" 2>&1 & + "${BATS_TEST_DIRNAME}/../supercronic" "${BATS_TEST_DIRNAME}/normal.crontab" >"$out" 2>&1 & # https://github.com/aptible/supercronic/issues/171 local pid=$! local foundErr - sleep 30 - grep "waitid: no child processes" "$out" && foundErr=1 + sleep 29.5 kill -TERM ${pid} + grep "waitid: no child processes" "$out" && foundErr=1 [[ $foundErr != 1 ]] }