improve error logging
This commit is contained in:
parent
9c6aa53c8c
commit
1ced0438c2
@ -364,23 +364,23 @@ echo -n "Testing inconsistency detection... "
|
|||||||
AMOUNT=`jq -r .reserve_balance_summary_wrong_inconsistencies[0].auditor < test-audit-reserves.json`
|
AMOUNT=`jq -r .reserve_balance_summary_wrong_inconsistencies[0].auditor < test-audit-reserves.json`
|
||||||
if test $AMOUNT != "TESTKUDOS:3"
|
if test $AMOUNT != "TESTKUDOS:3"
|
||||||
then
|
then
|
||||||
exit_fail "Auditor amount $AMOUNT is wrong"
|
exit_fail "Reserve auditor amount $AMOUNT is wrong"
|
||||||
fi
|
fi
|
||||||
AMOUNT=`jq -r .reserve_balance_summary_wrong_inconsistencies[0].exchange < test-audit-reserves.json`
|
AMOUNT=`jq -r .reserve_balance_summary_wrong_inconsistencies[0].exchange < test-audit-reserves.json`
|
||||||
if test $AMOUNT != "TESTKUDOS:0"
|
if test $AMOUNT != "TESTKUDOS:0"
|
||||||
then
|
then
|
||||||
exit_fail "Exchange amount $AMOUNT is wrong"
|
exit_fail "Reserve exchange amount $AMOUNT is wrong"
|
||||||
fi
|
fi
|
||||||
# Coin spent exceeded coin's value
|
# Coin spent exceeded coin's value
|
||||||
AMOUNT=`jq -r .amount_arithmetic_inconsistencies[0].auditor < test-audit-coins.json`
|
AMOUNT=`jq -r .amount_arithmetic_inconsistencies[0].auditor < test-audit-coins.json`
|
||||||
if test $AMOUNT != "TESTKUDOS:2"
|
if test $AMOUNT != "TESTKUDOS:2"
|
||||||
then
|
then
|
||||||
exit_fail "Auditor amount $AMOUNT is wrong"
|
exit_fail "Coin auditor amount $AMOUNT is wrong"
|
||||||
fi
|
fi
|
||||||
AMOUNT=`jq -r .amount_arithmetic_inconsistencies[0].exchange < test-audit-coins.json`
|
AMOUNT=`jq -r .amount_arithmetic_inconsistencies[0].exchange < test-audit-coins.json`
|
||||||
if test $AMOUNT != "TESTKUDOS:5"
|
if test $AMOUNT != "TESTKUDOS:5"
|
||||||
then
|
then
|
||||||
exit_fail "Exchange amount $AMOUNT is wrong"
|
exit_fail "Coin exchange amount $AMOUNT is wrong"
|
||||||
fi
|
fi
|
||||||
echo OK
|
echo OK
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user