aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/testrunner.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-10 00:02:27 +0100
committerFlorian Dold <florian@dold.me>2023-02-10 00:07:46 +0100
commit1a3040d872769fc65b1a194459f8af40c8077f49 (patch)
tree4fc6690a15025353530e30363730ff2ea975fb25 /packages/taler-harness/src/integrationtests/testrunner.ts
parentebb3e7e3386b3d5e6372f17798932718dfd8b9c7 (diff)
downloadwallet-core-1a3040d872769fc65b1a194459f8af40c8077f49.tar.gz
wallet-core-1a3040d872769fc65b1a194459f8af40c8077f49.tar.bz2
wallet-core-1a3040d872769fc65b1a194459f8af40c8077f49.zip
harness: allow running tests without timeout
Diffstat (limited to 'packages/taler-harness/src/integrationtests/testrunner.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/testrunner.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-harness/src/integrationtests/testrunner.ts b/packages/taler-harness/src/integrationtests/testrunner.ts
index 70008e386..4bad3dac2 100644
--- a/packages/taler-harness/src/integrationtests/testrunner.ts
+++ b/packages/taler-harness/src/integrationtests/testrunner.ts
@@ -198,6 +198,7 @@ export interface TestRunSpec {
suiteSpec?: string;
dryRun?: boolean;
includeExperimental: boolean;
+ noTimeout: boolean;
verbosity: number;
}
@@ -331,9 +332,13 @@ export async function runTests(spec: TestRunSpec) {
const defaultTimeout = 60000;
const testTimeoutMs = testCase.timeoutMs ?? defaultTimeout;
- console.log(`running ${testName} with timeout ${testTimeoutMs}ms`);
+ if (spec.noTimeout) {
+ console.log(`running ${testName}, no timeout`);
+ } else {
+ console.log(`running ${testName} with timeout ${testTimeoutMs}ms`);
+ }
- const { token } = CancellationToken.timeout(testTimeoutMs);
+ const token = spec.noTimeout ? CancellationToken.CONTINUE : CancellationToken.timeout(testTimeoutMs).token;
const resultPromise: Promise<TestRunResult> = new Promise(
(resolve, reject) => {