Skip to content

Commit c1ba006

Browse files
committed
Fixes #464 Before stopping and removing cid_file. Check if it is present
Closes #464 Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent fb9f382 commit c1ba006

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test-lib-nodejs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@ run_client_test_suite() {
186186
}
187187

188188
kill_test_application() {
189-
docker stop $(cat $cid_file)
190-
rm $cid_file
189+
docker stop $(cat $cid_file)
190+
if [[ -f "$cid_file" ]]; then
191+
rm "$cid_file"
192+
fi
191193
}
192194

193195
wait_for_cid() {

0 commit comments

Comments
 (0)