Skip to content
Closed
Changes from 1 commit
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
4 changes: 2 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,7 @@ 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 )
! ( ps | grep "$(cat .dfx/replica-configuration/replica-pid)" )

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this grep looks for the pid anywhere, so if replica-pid contains 337 and there is a pid 1337 it will think everything is all good

}

assert_file_eventually_exists() {
Expand Down