add missing 'run-until-done' and convert test-pay to new wallet API call

This commit is contained in:
Florian Dold 2020-08-29 15:12:22 +05:30
parent 3bba677f64
commit d1232f02cc
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -165,6 +165,7 @@ taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 'withdrawTestBalance'
--arg EXCHANGE_URL $EXCHANGE_URL --arg EXCHANGE_URL $EXCHANGE_URL
)" )"
taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB run-until-done
export coins=$(taler-wallet-cli --wallet-db=$WALLET_DB advanced dump-coins) export coins=$(taler-wallet-cli --wallet-db=$WALLET_DB advanced dump-coins)
@ -312,9 +313,16 @@ done
# Now we buy something, only the coins resulting from recoup+refresh will be # Now we buy something, only the coins resulting from recoup+refresh will be
# used, as other ones are suspended # used, as other ones are suspended
taler-wallet-cli $TIMETRAVEL --wallet-db=$WALLET_DB testing test-pay \ taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 'testPay' \
-m $MERCHANT_URL -k sandbox \ "$(jq -n '
-a "TESTKUDOS:0.02" -s "bar" {
amount: "TESTKUDOS:0.02",
merchantApiKey: "sandbox",
merchantBaseUrl: $MERCHANT_URL,
summary: "bar",
}' \
--arg MERCHANT_URL $MERCHANT_URL
)"
taler-wallet-cli $TIMETRAVEL --wallet-db=$WALLET_DB run-until-done taler-wallet-cli $TIMETRAVEL --wallet-db=$WALLET_DB run-until-done
echo "Bought something with refresh-recouped coin" echo "Bought something with refresh-recouped coin"