summaryrefslogtreecommitdiff
path: root/src/auditor/test-auditor.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-27 12:36:25 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-27 12:36:25 +0100
commita79c41dcc580d11636ceb483a29088db9b813f75 (patch)
tree9f9def2dcfaca52591d72fddf32d28a7855b36b8 /src/auditor/test-auditor.sh
parent5fc875a80b5f8adca848acf467db7a7d89c1a172 (diff)
downloadexchange-a79c41dcc580d11636ceb483a29088db9b813f75.tar.gz
exchange-a79c41dcc580d11636ceb483a29088db9b813f75.tar.bz2
exchange-a79c41dcc580d11636ceb483a29088db9b813f75.zip
fix test
Diffstat (limited to 'src/auditor/test-auditor.sh')
-rwxr-xr-xsrc/auditor/test-auditor.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index c8428156e..acdad747e 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -1715,7 +1715,7 @@ then
exit_fail "Reported total amount wrong: $AMOUNT"
fi
- OP=`jq -r .bad_sig_losses[0].operation < test-audit-coins.json`
+ OP=`jq -r --arg dep "deposit" '.bad_sig_losses[0] | select(.operation == $dep) | .operation' < test-audit-coins.json`
if test "x$OP" != "xdeposit"
then
exit_fail "Reported wrong operation: $OP"