diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-09-15 20:32:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-09-15 20:32:31 +0200 |
commit | bb654f7717771811f8b48d60ec1bd6eb5dee944f (patch) | |
tree | 305a97f10deb400fdcecad4b169bcdd7e9875f9c | |
parent | fb3bc5f0cff459cf7116dc3088dbebaafc589faf (diff) |
fix test 32
-rwxr-xr-x | src/auditor/test-auditor.sh | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index bd8eed106..e91e074eb 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -1783,7 +1783,6 @@ function test_23() { # Test for missing deposits in exchange database. function test_24() { -#TODO needs to be rebuild probably echo "===========24: deposits missing ===========" # Modify denom_sig, so it is wrong CNT=$(echo "SELECT COUNT(*) FROM auditor.auditor_deposit_confirmations;" | psql -Aqt "$DB") @@ -2130,22 +2129,15 @@ function test_32() { check_auditor_running echo -n "Testing inconsistency detection... " + check_report \ + "bad-sig-losses" \ + "operation" "wire" + echo -n "Testing inconsistency balance update... " + check_not_balance \ + "aggregation_total_bad_sig_loss" \ + "TESTKUDOS:0" \ + "Missed updating aggregation_total_bad_sig_loss" - call_endpoint "bad-sig-losses" - - AMOUNT=$(jq -r .total_bad_sig_loss < "${MY_TMP_DIR}/bad-sig-losses.json") - if [ "$AMOUNT" == "TESTKUDOS:0" ] - then - exit_fail "Reported total amount wrong: $AMOUNT" - fi - - OP=$(jq -r .bad_sig_losses[0].operation < "${MY_TMP_DIR}/bad-sig-losses.json") - if [ "$OP" != "wire" ] - then - exit_fail "Reported wrong operation: $OP" - fi - - echo "OK" # Cannot undo aggregation, do full reload stop_auditor_httpd full_reload |