aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-21 22:02:34 +0200
committerFlorian Dold <florian@dold.me>2023-04-21 22:02:40 +0200
commite81ae0f3e5a510424076b611ac32385057cbdaed (patch)
tree1583ae253ec979f6dfdef5cd4581db6a7d33818a /packages/taler-harness/src/integrationtests
parentfc2adae6bd34164b4a13b270be4c585f090afb61 (diff)
downloadwallet-core-e81ae0f3e5a510424076b611ac32385057cbdaed.tar.xz
wallet-harness: make sure events are not lost in deposit test
Diffstat (limited to 'packages/taler-harness/src/integrationtests')
-rw-r--r--packages/taler-harness/src/integrationtests/test-deposit.ts15
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-deposit.ts b/packages/taler-harness/src/integrationtests/test-deposit.ts
index 1b46daf5f..6aa086107 100644
--- a/packages/taler-harness/src/integrationtests/test-deposit.ts
+++ b/packages/taler-harness/src/integrationtests/test-deposit.ts
@@ -45,9 +45,17 @@ export async function runDepositTest(t: GlobalTestState) {
await withdrawalResult.withdrawalFinishedCond;
- const depositDone = await walletClient.waitForNotificationCond(
+ const dgIdResp = await walletClient.client.call(
+ WalletApiOperation.GenerateDepositGroupTxId,
+ {},
+ );
+
+ const depositTxId = dgIdResp.transactionId;
+
+ const depositDone = walletClient.waitForNotificationCond(
(n) =>
n.type == NotificationType.TransactionStateTransition &&
+ n.transactionId == depositTxId &&
n.newTxState == TransactionState.Done,
);
@@ -56,9 +64,14 @@ export async function runDepositTest(t: GlobalTestState) {
{
amount: "TESTKUDOS:10",
depositPaytoUri: getPayto("foo"),
+ transactionId: depositTxId,
},
);
+ t.assertDeepEqual(depositGroupResult.transactionId, depositTxId);
+
+ await depositDone;
+
const transactions = await walletClient.client.call(
WalletApiOperation.GetTransactions,
{},