From a3354306c629ab3ab5f45617f31b90976416105a Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 18 May 2020 13:45:21 -0300 Subject: Add integration test for withdrawals --- integrationtests/common.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'integrationtests/common.sh') diff --git a/integrationtests/common.sh b/integrationtests/common.sh index 86158d153..d228d1ea5 100644 --- a/integrationtests/common.sh +++ b/integrationtests/common.sh @@ -114,6 +114,9 @@ function wait_for_services() { OK=1 break done + if [ 1 != $OK ]; then + exit_skip "Failed to launch bank" + fi # Wait for all other services to be available for _ in $(seq 1 50); do echo -n "." @@ -170,6 +173,10 @@ function assert_greater_than() { fi } +function assert_equal() { + [[ "$1" == "$2" ]] || exit_error "$1 is not equal to $2" +} + function shutdown_services() { echo "Shutting down services" jobs -p | xargs --no-run-if-empty kill || true -- cgit v1.2.3