Skip to content

Commit c200823

Browse files
committed
Fix kill issue again
1 parent 512d454 commit c200823

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sharness/lib/test-lib.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ test_start_daemon() {
129129
test_stop_daemon() {
130130
docid="$1"
131131
test_expect_success "kill ipfs daemon" '
132-
exec_docker "$docid" "kill $(pidof ipfs)"
132+
exec_docker "$docid" "kill \$(pidof ipfs)"
133+
'
134+
135+
test_expect_success "daemon is not running" '
136+
test_must_fail exec_docker "$docid" "pidof ipfs"
133137
'
134138
}
135139

0 commit comments

Comments
 (0)