diff options
author | Florian Dold <florian@dold.me> | 2023-06-20 16:07:15 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-20 16:07:20 +0200 |
commit | e5a8ae7d60c9fc9d6740ef391ac34f2ac620b0f4 (patch) | |
tree | 472ddac0bbcf0b80a682672462870de613e8b3c8 /packages/taler-harness/src/integrationtests/test-withdrawal-huge.ts | |
parent | a86c948fc9e44e3503cd19776c3eb6410ea3d674 (diff) |
wallet-core: remove redundant/unused notifications
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-withdrawal-huge.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-withdrawal-huge.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-huge.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-huge.ts index 2415c8246..f56e4d24d 100644 --- a/packages/taler-harness/src/integrationtests/test-withdrawal-huge.ts +++ b/packages/taler-harness/src/integrationtests/test-withdrawal-huge.ts @@ -27,11 +27,11 @@ import { } from "../harness/harness.js"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { CoinConfig, defaultCoinConfig } from "../harness/denomStructures.js"; -import { NotificationType, URL } from "@gnu-taler/taler-util"; +import { NotificationType, TransactionMajorState, URL } from "@gnu-taler/taler-util"; /** * Withdraw a high amount. Mostly intended as a perf test. - * + * * It is useful to see whether the wallet stays responsive while doing a huge withdrawal. * (This is not automatic yet. Use taler-wallet-cli to connect to the daemon and make requests to check.) */ @@ -83,7 +83,11 @@ export async function runWithdrawalHugeTest(t: GlobalTestState) { }); await wallet.connect(); - const withdrawalFinishedCond = wallet.waitForNotificationCond((wn) => wn.type === NotificationType.WithdrawGroupFinished); + const withdrawalFinishedCond = wallet.waitForNotificationCond( + (wn) => wn.type === NotificationType.TransactionStateTransition && + wn.transactionId.startsWith("txn:withdrawal:") && + wn.newTxState.major === TransactionMajorState.Done, + ); await wallet.client.call(WalletApiOperation.AddExchange, { exchangeBaseUrl: exchange.baseUrl, |