aboutsummaryrefslogtreecommitdiff
path: root/api/tests/latest_known_mined_block.sh
diff options
context:
space:
mode:
Diffstat (limited to 'api/tests/latest_known_mined_block.sh')
-rwxr-xr-xapi/tests/latest_known_mined_block.sh6
1 files changed, 4 insertions, 2 deletions
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'