gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] 02/03: per-test timeout


From: gnunet
Subject: [taler-wallet-core] 02/03: per-test timeout
Date: Thu, 04 Feb 2021 17:13:38 +0100

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

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

commit 83937a7198c17b267714b159f0e616a2536264d3
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Feb 4 16:22:05 2021 +0100

    per-test timeout
---
 packages/taler-wallet-cli/src/integrationtests/testrunner.ts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts 
b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts
index 0d591573..455d8f45 100644
--- a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts
@@ -68,6 +68,7 @@ import CancellationToken from "cancellationtoken";
  */
 interface TestMainFunction {
   (t: GlobalTestState): Promise<void>;
+  timeoutMs?: number;
 }
 
 const allTests: TestMainFunction[] = [
@@ -199,9 +200,10 @@ export async function runTests(spec: TestRunSpec) {
     currentChild.stdout?.pipe(harnessLogStream);
     currentChild.stderr?.pipe(harnessLogStream);
 
-    const testTimeoutMs = 60000;
+    const defaultTimeout = 60000;
+    const testTimeoutMs = testCase.timeoutMs ?? defaultTimeout;
 
-    const { token } = CancellationToken.timeout(60000);
+    const { token } = CancellationToken.timeout(testTimeoutMs);
 
     const resultPromise: Promise<TestRunResult> = new Promise(
       (resolve, reject) => {

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