From 83937a7198c17b267714b159f0e616a2536264d3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 4 Feb 2021 16:22:05 +0100 Subject: per-test timeout --- packages/taler-wallet-cli/src/integrationtests/testrunner.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts index 0d5915737..455d8f451 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; + 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 = new Promise( (resolve, reject) => { -- cgit v1.2.3