test: Minor refactor to reduce test code duplication

Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
Magnus Malm committed 2021-02-24 13:13:38 +01:00
1 parent 6027e94c65
commit f214098560
5 files changed
+4 -16

No files matched your search

@@ -6,10 +6,6 @@ TEST_DIR=$(dirname "$0")/..
# shellcheck source=/dev/null
. "$TEST_DIR/lib.sh"
assert_num_children() {
assert "$1 services are running" "$(texec pgrep -P 1 "$2" | wc -l)" -eq "$1"
}
test_teardown() {
say "Test done $(date)"
say "Running test teardown..."