blob: 1450f6258acd44ac8dacd28d2968f969f7609d4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Script to check that the wallet does a withdrawal correctly
source "common.sh"
normal_start_and_wait "withdrawal"
echo "Withdraw 5 TESTKUDOS"
taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle testing withdraw -e "$EXCHANGE_URL" -b "$BANK_URL" -a "TESTKUDOS:5" >>"$LOG" 2>>"$LOG"
BALANCE_1=$(get_balance)
assert_equal "$BALANCE_1" "TESTKUDOS:4.84"
echo "Balance after withdrawal: $BALANCE_1"
echo "Withdraw 10 TESTKUDOS"
taler-wallet-cli --wallet-db="$WALLET_DB" --no-throttle testing withdraw -e "$EXCHANGE_URL" -b "$BANK_URL" -a "TESTKUDOS:10" >>"$LOG" 2>>"$LOG"
BALANCE_2=$(get_balance)
assert_equal "$BALANCE_2" "TESTKUDOS:14.66"
echo "Balance after withdrawal: $BALANCE_2"
exit_success
|