diff options
author | Florian Dold <florian@dold.me> | 2021-02-04 15:07:47 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-04 15:08:08 +0100 |
commit | aefc3f26b673c38fa1ca8238c049d2739063069c (patch) | |
tree | 4334506b715cc51b03b23eb435422d0fb7ff9429 /packages/taler-wallet-cli/src/integrationtests/harness.ts | |
parent | c0904936e4b9f940e9f036d203832fed21994bb7 (diff) | |
download | wallet-core-aefc3f26b673c38fa1ca8238c049d2739063069c.tar.xz |
timeout for tests
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/harness.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/harness.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts b/packages/taler-wallet-cli/src/integrationtests/harness.ts index bd950da0b..9a1136bc0 100644 --- a/packages/taler-wallet-cli/src/integrationtests/harness.ts +++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts @@ -98,10 +98,14 @@ import { import { ApplyRefundResponse } from "@gnu-taler/taler-wallet-core"; import { PendingOperationsResponse } from "@gnu-taler/taler-wallet-core"; import { CoinConfig } from "./denomStructures"; +import CancellationToken from "cancellationtoken"; const exec = util.promisify(require("child_process").exec); -export async function delayMs(ms: number): Promise<void> { +export async function delayMs( + ms: number, + cancellationToken?: CancellationToken, +): Promise<void> { return new Promise((resolve, reject) => { setTimeout(() => resolve(), ms); }); @@ -1486,6 +1490,8 @@ export interface TestRunResult { timeSec: number; status: TestStatus; + + reason?: string; } export async function runTestWithState( |