aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-09-06 10:48:44 +0200
committerFlorian Dold <florian@dold.me>2023-09-06 10:48:44 +0200
commitda4f3900b4ef8dda2070af567f66d8f668b4eb2f (patch)
treeb70298eb847307ae9cba89e0bc22df302c10f6ae /packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
parent665c42f595151650bb87a3108a19d6df67ed6324 (diff)
downloadwallet-core-da4f3900b4ef8dda2070af567f66d8f668b4eb2f.tar.xz
harness: check idempotency of merchant account creation API
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
index 5ee35a377..3072badc0 100644
--- a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
+++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
@@ -82,13 +82,14 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) {
name: "w0",
});
- await withdrawViaBankV2(t, {
+ const wres = await withdrawViaBankV2(t, {
walletClient: walletClientZero,
bank,
exchange,
amount: "TESTKUDOS:20",
restrictAge: 13,
});
+ await wres.withdrawalFinishedCond;
const order = {
summary: "Buy me!",
@@ -111,13 +112,14 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) {
{
const walletClient = walletClientOne;
- await withdrawViaBankV2(t, {
+ const wres = await withdrawViaBankV2(t, {
walletClient,
bank,
exchange,
amount: "TESTKUDOS:20",
restrictAge: 13,
});
+ await wres.withdrawalFinishedCond;
const order = {
summary: "Buy me!",
@@ -136,13 +138,14 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) {
{
const walletClient = walletClientTwo;
- await withdrawViaBankV2(t, {
+ const wres = await withdrawViaBankV2(t, {
walletClient,
bank,
exchange,
amount: "TESTKUDOS:20",
restrictAge: 13,
});
+ await wres.withdrawalFinishedCond;
const order = {
summary: "Buy me!",
@@ -160,12 +163,13 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) {
{
const walletClient = walletClientThree;
- await withdrawViaBankV2(t, {
+ const wres = await withdrawViaBankV2(t, {
walletClient,
bank,
exchange,
amount: "TESTKUDOS:20",
});
+ await wres.withdrawalFinishedCond;
const order = {
summary: "Buy me!",