mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
tests/taler: adjust currency wire fees
because making a withdrawal fails if the fees are 0, for some reason.
This commit is contained in:
parent
f73d148645
commit
c1fe104a77
1 changed files with 4 additions and 3 deletions
|
@ -97,8 +97,8 @@ import ../../make-test-python.nix (
|
||||||
exchange.succeed('taler-exchange-offline -c "${configFile}" upload < ${exchangeAccount}')
|
exchange.succeed('taler-exchange-offline -c "${configFile}" upload < ${exchangeAccount}')
|
||||||
|
|
||||||
# Set up wire fees, needed in order to deposit coins/pay merchant
|
# Set up wire fees, needed in order to deposit coins/pay merchant
|
||||||
exchange.succeed('taler-exchange-offline -c "${configFile}" wire-fee now x-taler-bank "${CURRENCY}:0" "${CURRENCY}:0" upload')
|
exchange.succeed('taler-exchange-offline -c "${configFile}" wire-fee now x-taler-bank "${CURRENCY}:0.01" "${CURRENCY}:0.01" upload')
|
||||||
exchange.succeed('taler-exchange-offline -c "${configFile}" global-fee now "${CURRENCY}:0" "${CURRENCY}:0" "${CURRENCY}:0" 1h 6a 0 upload')
|
exchange.succeed('taler-exchange-offline -c "${configFile}" global-fee now "${CURRENCY}:0.01" "${CURRENCY}:0.0" "${CURRENCY}:0" 1h 6a 0 upload')
|
||||||
|
|
||||||
|
|
||||||
# Verify that exchange keys exist
|
# Verify that exchange keys exist
|
||||||
|
@ -204,7 +204,8 @@ import ../../make-test-python.nix (
|
||||||
|
|
||||||
|
|
||||||
with subtest("Pay for an order"):
|
with subtest("Pay for an order"):
|
||||||
balanceWanted = "${CURRENCY}:9" # after paying
|
# after paying (1 for the order and 0.1 as fee)
|
||||||
|
balanceWanted = "${CURRENCY}:8.9"
|
||||||
|
|
||||||
# Create an order to be paid
|
# Create an order to be paid
|
||||||
response = json.loads(
|
response = json.loads(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue