test: minor, rename fn

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-02-05 17:09:47 +01:00
1 parent c26dded49c
commit a96edf0291
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ test_one()
#run "initctl status serv" #run "initctl status serv"
retry 'assert_num_children 1 serv' retry 'assert_num_children 1 serv'
retry "assert_pidfile $pidfn" 1 retry "assert_has_pidfile $pidfn" 1
say 'Stop the service' say 'Stop the service'
run "initctl stop serv" run "initctl stop serv"
+1 -1
View File
@@ -87,7 +87,7 @@ assert_nocond()
} }
# shellcheck disable=SC2086 # shellcheck disable=SC2086
assert_pidfile() assert_has_pidfile()
{ {
assert "Process has PID file" "$(texec find $1 2>/dev/null)" assert "Process has PID file" "$(texec find $1 2>/dev/null)"
} }