From 52e61043bcb716af42f9fd167aa2bb280bde5b5b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 31 Mar 2023 21:34:47 +0300 Subject: Updated test scripts --- api/tests/latest_known_mined_block.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'api/tests/latest_known_mined_block.sh') diff --git a/api/tests/latest_known_mined_block.sh b/api/tests/latest_known_mined_block.sh index 90c3feb..c4e40bb 100755 --- a/api/tests/latest_known_mined_block.sh +++ b/api/tests/latest_known_mined_block.sh @@ -1,9 +1,11 @@ #!/bin/bash # +PROGRAM="$(basename $0)" +printf '[%s]\n' "$PROGRAM" printf "TEST\t/slatest\n" -printf "\t01:\tendpoint\n" +printf "\t01:\tendpoint" A="$(curl http://127.0.0.1:8610/v0/slatest 2>/dev/null)" -B="$(ak-find-latest-mined-block)" +B="$(ak-find-latest-mined-sblock)" if [ "$A" == "$B" ] then printf '\t\t\033[0;32mPASSED\033[0;0m' -- cgit v1.2.3