Skip to content

Commit 5a89d53

Browse files
committed
Wait when restarting ocid during tests
When we restart ocid as part of a test, wait for the daemon to exit when we send it a SIGTERM, just as we do when we try to stop it for good. Signed-off-by: Nalin Dahyabhai <[email protected]>
1 parent d0464b1 commit 5a89d53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/helpers.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ function stop_ocid() {
197197
function restart_ocid() {
198198
if [ "$OCID_PID" != "" ]; then
199199
kill "$OCID_PID" >/dev/null 2>&1
200+
wait "$OCID_PID"
200201
start_ocid
201202
else
202203
echo "you must start ocid first"

0 commit comments

Comments
 (0)