gnunet-svn
[Top][All Lists]
Advanced

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

[taler-typescript-core] branch master updated: harness: use timetravel t


From: Admin
Subject: [taler-typescript-core] branch master updated: harness: use timetravel to make exchange-kyc-auth test terminate
Date: Thu, 12 Jun 2025 14:29:44 +0200

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

dold pushed a commit to branch master
in repository taler-typescript-core.

The following commit(s) were added to refs/heads/master by this push:
     new c7ba2cdd8 harness: use timetravel to make exchange-kyc-auth test 
terminate
c7ba2cdd8 is described below

commit c7ba2cdd8b68970633a89edb1017319caae229b0
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jun 12 14:29:36 2025 +0200

    harness: use timetravel to make exchange-kyc-auth test terminate
---
 .../src/integrationtests/test-exchange-kyc-auth.ts | 28 +++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)

diff --git 
a/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts 
b/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts
index 3664791ca..a15ffdb8b 100644
--- a/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts
+++ b/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts
@@ -320,11 +320,33 @@ export async function runExchangeKycAuthTest(t: 
GlobalTestState) {
 
   await walletClient.call(WalletApiOperation.TestingWaitTransactionState, {
     transactionId: dep2Resp.transactionId,
-    txState: {
-      major: TransactionMajorState.Done,
-    },
+    txState: [
+      {
+        major: TransactionMajorState.Done,
+      },
+      {
+        major: TransactionMajorState.Finalizing,
+        minor: TransactionMinorState.Track,
+      },
+    ],
     timeout: { seconds: 10 },
   });
+
+  await exchange.runAggregatorOnceWithTimetravel({
+    timetravelMicroseconds: 10 * 60 * 1000 * 1000,
+  });
+  await exchange.runTransferOnceWithTimetravel({
+    timetravelMicroseconds: 10 * 60 * 1000 * 1000,
+  });
+
+  await walletClient.call(WalletApiOperation.TestingWaitTransactionState, {
+    transactionId: dep2Resp.transactionId,
+    txState: [
+      {
+        major: TransactionMajorState.Done,
+      },
+    ],
+  });
 }
 
 runExchangeKycAuthTest.suites = ["wallet"];

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