Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions e2e/bats/utils/assertions.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!
#!/usr/bin/env bash

# Asserts that a command line succeeds. Still sets $output to the stdout and stderr
# of the command.
Expand Down Expand Up @@ -149,7 +149,9 @@ assert_process_exits() {
# Asserts that `dfx start` and `replica` are no longer running
assert_no_dfx_start_or_replica_processes() {
! ( ps | grep "[/[:space:]]dfx start" )
! ( ps | cat .dfx/replica-configuration/replica-pid )
if [ -f .dfx/replica-configuration/replica-pid ]; then
! ( ps | grep "$(cat .dfx/replica-configuration/replica-pid)" )
fi
}

assert_file_eventually_exists() {
Expand Down