aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src')
-rw-r--r--packages/taler-harness/src/integrationtests/test-withdrawal-handover.ts17
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-handover.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-handover.ts
index aed266eb0..9fbdb81a4 100644
--- a/packages/taler-harness/src/integrationtests/test-withdrawal-handover.ts
+++ b/packages/taler-harness/src/integrationtests/test-withdrawal-handover.ts
@@ -47,9 +47,10 @@ export async function runWithdrawalHandoverTest(t: GlobalTestState) {
const user = await bankClient.createRandomBankUser();
const userBankClient = new TalerCorebankApiClient(bankClient.baseUrl);
userBankClient.setAuth(user);
+ const amount = "TESTKUDOS:10"
const wop = await userBankClient.createWithdrawalOperation(
user.username,
- "TESTKUDOS:10",
+ amount,
);
const checkResp = await walletClient.call(
@@ -64,7 +65,7 @@ export async function runWithdrawalHandoverTest(t: GlobalTestState) {
const prepareResp = await walletClient.call(
WalletApiOperation.PrepareBankIntegratedWithdrawal,
{
- exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
+ // exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
talerWithdrawUri: wop.taler_withdraw_uri,
},
);
@@ -78,6 +79,8 @@ export async function runWithdrawalHandoverTest(t: GlobalTestState) {
await walletClient.call(WalletApiOperation.ConfirmWithdrawal, {
transactionId: prepareResp.transactionId,
+ amount,
+ exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
});
await walletClient.call(WalletApiOperation.TestingWaitTransactionState, {
@@ -113,9 +116,11 @@ export async function runWithdrawalHandoverTest(t: GlobalTestState) {
const user = await bankClient.createRandomBankUser();
const userBankClient = new TalerCorebankApiClient(bankClient.baseUrl);
userBankClient.setAuth(user);
+ const amount = "TESTKUDOS:10";
+
const wop = await userBankClient.createWithdrawalOperation(
user.username,
- "TESTKUDOS:10",
+ amount,
);
const checkResp = await walletClient.call(
@@ -130,7 +135,7 @@ export async function runWithdrawalHandoverTest(t: GlobalTestState) {
const prepareRespW1 = await walletClient.call(
WalletApiOperation.PrepareBankIntegratedWithdrawal,
{
- exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
+ // exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
talerWithdrawUri: wop.taler_withdraw_uri,
},
);
@@ -138,13 +143,15 @@ export async function runWithdrawalHandoverTest(t: GlobalTestState) {
const prepareRespW2 = await w2.walletClient.call(
WalletApiOperation.PrepareBankIntegratedWithdrawal,
{
- exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
+ // exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
talerWithdrawUri: wop.taler_withdraw_uri,
},
);
await w2.walletClient.call(WalletApiOperation.ConfirmWithdrawal, {
transactionId: prepareRespW2.transactionId,
+ amount,
+ exchangeBaseUrl: checkResp.defaultExchangeBaseUrl,
});
await w2.walletClient.call(WalletApiOperation.TestingWaitTransactionState, {