gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (bd57fa46a -> c4e8eabce)


From: gnunet
Subject: [taler-wallet-core] branch master updated (bd57fa46a -> c4e8eabce)
Date: Mon, 16 Jan 2023 13:59:19 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a change to branch master
in repository wallet-core.

    from bd57fa46a show deposit transaction info
     new e4801dcc3 util: 'when' field must be optional
     new c4e8eabce harness: fix wrong assertions in test-payment-abort

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/integrationtests/test-payment-abort.ts       | 20 +++++++++++---------
 packages/taler-util/src/wallet-types.ts              |  2 +-
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/packages/taler-harness/src/integrationtests/test-payment-abort.ts 
b/packages/taler-harness/src/integrationtests/test-payment-abort.ts
index 475c6f7cf..40175cec9 100644
--- a/packages/taler-harness/src/integrationtests/test-payment-abort.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment-abort.ts
@@ -128,14 +128,15 @@ export async function runPaymentAbortTest(t: 
GlobalTestState) {
     },
   });
 
-  await t.assertThrowsTalerErrorAsync(async () => {
-    const confirmPayResp = await wallet.client.call(
-      WalletApiOperation.ConfirmPay,
-      {
-        proposalId,
-      },
-    );
-  });
+  const confirmPayResp = await wallet.client.call(
+    WalletApiOperation.ConfirmPay,
+    {
+      proposalId,
+    },
+  );
+
+  // Can't have succeeded yet, but network error results in "pending" state.
+  t.assertDeepEqual(confirmPayResp.type, ConfirmPayResultType.Pending);
 
   const txns = await wallet.client.call(WalletApiOperation.GetTransactions, 
{});
   console.log(j2s(txns));
@@ -149,7 +150,8 @@ export async function runPaymentAbortTest(t: 
GlobalTestState) {
   const txns2 = await wallet.client.call(WalletApiOperation.GetTransactions, 
{});
   console.log(j2s(txns2));
 
-  const txTypes = txns.transactions.map((x) => x.type);
+  const txTypes = txns2.transactions.map((x) => x.type);
+  console.log(txTypes);
   t.assertDeepEqual(txTypes, ["withdrawal", "payment", "refund"]);
 
   // FIXME: also check extended transaction list for refresh.
diff --git a/packages/taler-util/src/wallet-types.ts 
b/packages/taler-util/src/wallet-types.ts
index af775a54e..fc383acb0 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -597,7 +597,7 @@ export interface WalletDiagnostics {
 
 export interface TalerErrorDetail {
   code: TalerErrorCode;
-  when: AbsoluteTime;
+  when?: AbsoluteTime;
   hint?: string;
   [x: string]: unknown;
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]