gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: harness: fix test by making t


From: gnunet
Subject: [taler-wallet-core] branch master updated: harness: fix test by making txn sort order stable
Date: Mon, 25 Mar 2024 21:20:53 +0100

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 4d6c7ca01 harness: fix test by making txn sort order stable
4d6c7ca01 is described below

commit 4d6c7ca01c862d25a914313f49f4336a397e37d0
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Mar 25 21:20:48 2024 +0100

    harness: fix test by making txn sort order stable
---
 packages/taler-harness/src/integrationtests/test-payment-abort.ts | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/packages/taler-harness/src/integrationtests/test-payment-abort.ts 
b/packages/taler-harness/src/integrationtests/test-payment-abort.ts
index 17e2705a4..ca8384411 100644
--- a/packages/taler-harness/src/integrationtests/test-payment-abort.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment-abort.ts
@@ -137,7 +137,9 @@ export async function runPaymentAbortTest(t: 
GlobalTestState) {
   // Can't have succeeded yet, but network error results in "pending" state.
   t.assertDeepEqual(confirmPayResp.type, ConfirmPayResultType.Pending);
 
-  const txns = await walletClient.call(WalletApiOperation.GetTransactions, {});
+  const txns = await walletClient.call(WalletApiOperation.GetTransactions, {
+    sort: "stable-ascending",
+  });
   console.log(j2s(txns));
 
   await walletClient.call(WalletApiOperation.AbortTransaction, {
@@ -146,7 +148,9 @@ export async function runPaymentAbortTest(t: 
GlobalTestState) {
 
   await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
 
-  const txns2 = await walletClient.call(WalletApiOperation.GetTransactions, 
{});
+  const txns2 = await walletClient.call(WalletApiOperation.GetTransactions, {
+    sort: "stable-ascending",
+  });
   console.log(j2s(txns2));
 
   const txTypes = txns2.transactions.map((x) => x.type);

-- 
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]