Skip to content

Commit

Permalink
fix(test): remove removed flag
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlongzt committed Oct 2, 2024
1 parent 5fa674d commit d467e95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]]
}

0 comments on commit d467e95

Please sign in to comment.