aboutsummaryrefslogtreecommitdiff
path: root/api/tests/latest_known_mined_block.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-03-31 21:34:47 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-03-31 21:34:47 +0300
commit52e61043bcb716af42f9fd167aa2bb280bde5b5b (patch)
tree5f8f2708bd6ac8da77d12872036d056ea80369fa /api/tests/latest_known_mined_block.sh
parent3023b8396d3656887a95f11e45da2e79406d64d1 (diff)
downloadarching-kaos-tools-52e61043bcb716af42f9fd167aa2bb280bde5b5b.tar.gz
arching-kaos-tools-52e61043bcb716af42f9fd167aa2bb280bde5b5b.tar.bz2
arching-kaos-tools-52e61043bcb716af42f9fd167aa2bb280bde5b5b.zip
Updated test scripts
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'