summaryrefslogtreecommitdiff
path: root/integrationtests/test-double-spend.sh
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-05-08 15:02:07 -0300
committerTorsten Grote <t@grobox.de>2020-05-08 15:02:07 -0300
commit7e947ca2cdd8e66ea49822acbad81e7d35289c0a (patch)
treedb9240c5c67d69d89785110c4f2bf346a87d2622 /integrationtests/test-double-spend.sh
parent1cf48054c47d9562876b5f021dc398b050b959fd (diff)
downloadwallet-core-7e947ca2cdd8e66ea49822acbad81e7d35289c0a.tar.gz
wallet-core-7e947ca2cdd8e66ea49822acbad81e7d35289c0a.tar.bz2
wallet-core-7e947ca2cdd8e66ea49822acbad81e7d35289c0a.zip
Add functions for getting and comparing balances to integration tests
Diffstat (limited to 'integrationtests/test-double-spend.sh')
-rwxr-xr-xintegrationtests/test-double-spend.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/integrationtests/test-double-spend.sh b/integrationtests/test-double-spend.sh
index 5987ad494..81a4563a6 100755
--- a/integrationtests/test-double-spend.sh
+++ b/integrationtests/test-double-spend.sh
@@ -10,12 +10,10 @@ taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle testing withdraw -e "$EX
cp "$WALLET_DB" "$WALLET_DB.bak"
echo "Spend all the money"
taler-wallet-cli --wallet-db="$WALLET_DB" testing test-pay -m "$MERCHANT_URL" -k sandbox -a "TESTKUDOS:9.5" -s "foo"
-echo "New balance:"
-taler-wallet-cli --wallet-db="$WALLET_DB" balance
+echo "New balance: $(get_balance)"
# Restore old wallet database
mv "$WALLET_DB.bak" "$WALLET_DB"
-echo "Balance after getting old coins back:"
-taler-wallet-cli --wallet-db="$WALLET_DB" balance
+echo "Balance after getting old coins back: $(get_balance)"
echo "Try to double-spend"
# TODO this should probably fail more gracefully
# "exchange_reply: { hint: 'insufficient funds', code: 1200 }