wallet-core/integrationtests/test-coin-expiration.sh

15 lines
530 B
Bash
Raw Normal View History

2020-05-18 18:45:21 +02:00
#!/bin/bash
# Script to check that the wallet automatically refreshes coins for they expire
source "common.sh"
normal_start_and_wait "coin-expiration"
echo "Withdraw TESTKUDOS"
taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle testing withdraw -e "$EXCHANGE_URL" -b "$BANK_URL" -a "TESTKUDOS:10" >>"$LOG" 2>>"$LOG"
echo "Balance after withdrawal: $(get_balance)"
# TODO time-travel to check that wallet actually refreshed coin before expiration
taler-wallet-cli --wallet-db="$WALLET_DB" advanced dump-coins
exit_success