diff options
Diffstat (limited to 'packages/taler-harness')
-rw-r--r-- | packages/taler-harness/src/harness/harness.ts | 1 | ||||
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-deposit.ts | 15 |
2 files changed, 15 insertions, 1 deletions
diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index 840149e7c..0a898414d 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -2062,6 +2062,7 @@ export class WalletService { [ "--wallet-db", dbPath, + "-LDEBUG", // FIXME: Make this configurable? "--no-throttle", // FIXME: Optionally do throttling for some tests? "advanced", "serve", 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, {}, |