[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: -check that withdrawal throws
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: -check that withdrawal throws |
Date: |
Fri, 05 Apr 2024 13:38:39 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 493fe38a6 -check that withdrawal throws
493fe38a6 is described below
commit 493fe38a603cc7a54a9d36b235da7abad3a10a92
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Apr 5 13:38:37 2024 +0200
-check that withdrawal throws
---
.../src/integrationtests/test-wallet-exchange-update.ts | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git
a/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts
b/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts
index 15ac79953..3251750da 100644
--- a/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts
+++ b/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts
@@ -18,6 +18,7 @@
* Imports.
*/
import {
+ AmountString,
ExchangeUpdateStatus,
NotificationType,
j2s,
@@ -106,13 +107,15 @@ export async function runWalletExchangeUpdateTest(
t.assertDeepEqual(exchangesListResult.exchanges.length, 0);
- await withdrawViaBankV2(t, {
+ const wres = await withdrawViaBankV2(t, {
walletClient,
bank,
exchange: exchangeOne,
amount: "TESTKUDOS:10",
});
+ await wres.withdrawalFinishedCond;
+
await exchangeOne.stop();
console.log("starting second exchange");
@@ -136,6 +139,13 @@ export async function runWalletExchangeUpdateTest(
console.log(`exchange entry: ${j2s(exchangeEntry)}`);
+ await t.assertThrowsAsync(async () => {
+ await walletClient.call(WalletApiOperation.GetWithdrawalDetailsForAmount, {
+ amount: "TESTKUDOS:10" as AmountString,
+ exchangeBaseUrl: exchangeOne.baseUrl,
+ });
+ });
+
const exchangeAvailableCond = walletClient.waitForNotificationCond((n) => {
console.log(`got notif ${j2s(n)}`);
return (
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: -check that withdrawal throws,
gnunet <=