summaryrefslogtreecommitdiff
path: root/src/auditor/test-auditor.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-19 02:46:17 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-19 02:46:17 +0100
commit52bdff78675dfce080f33414613b3cb441167def (patch)
tree32379068a4733566dcef739c59cbc1c829a0757c /src/auditor/test-auditor.sh
parent58e5780917fad2f085734804fd96f89c04fcaaca (diff)
downloadexchange-52bdff78675dfce080f33414613b3cb441167def.tar.gz
exchange-52bdff78675dfce080f33414613b3cb441167def.tar.bz2
exchange-52bdff78675dfce080f33414613b3cb441167def.zip
get auditor to pass with refund
Diffstat (limited to 'src/auditor/test-auditor.sh')
-rwxr-xr-xsrc/auditor/test-auditor.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 43ab902d9..832bfb836 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -351,13 +351,13 @@ echo "UPDATE reserves_in SET credit_val=15 WHERE reserve_in_serial_id=1" | psql
run_audit
EXPECTED=`jq -r .reserve_balance_summary_wrong_inconsistencies[0].auditor < test-audit.json`
-if test $EXPECTED != "TESTKUDOS:5"
+if test $EXPECTED != "TESTKUDOS:5.01"
then
exit_fail "Expected reserve balance summary amount wrong, got $EXPECTED (auditor)"
fi
EXPECTED=`jq -r .reserve_balance_summary_wrong_inconsistencies[0].exchange < test-audit.json`
-if test $EXPECTED != "TESTKUDOS:0"
+if test $EXPECTED != "TESTKUDOS:0.01"
then
exit_fail "Expected reserve balance summary amount wrong, got $EXPECTED (exchange)"
fi
@@ -513,7 +513,7 @@ then
fi
LOSS=`jq -r .bad_sig_losses[0].loss < test-audit.json`
-if test $LOSS != "TESTKUDOS:1"
+if test $LOSS != "TESTKUDOS:0.1"
then
exit_fail "Wrong deposit bad signature loss, got $LOSS"
fi
@@ -525,7 +525,7 @@ then
fi
LOSS=`jq -r .total_bad_sig_loss < test-audit.json`
-if test $LOSS != "TESTKUDOS:1"
+if test $LOSS != "TESTKUDOS:0.1"
then
exit_fail "Wrong total bad sig loss, got $LOSS"
fi