increase timeout for test

This commit is contained in:
Florian Dold 2021-02-04 19:27:10 +01:00
parent 8425d79d48
commit 4e6b156156
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 4 additions and 0 deletions

View File

@ -200,3 +200,5 @@ export async function runRevocationTest(t: GlobalTestState) {
await makeTestPayment(t, { wallet, merchant, order });
}
runRevocationTest.timeoutMs = 120000;

View File

@ -203,6 +203,8 @@ export async function runTests(spec: TestRunSpec) {
const defaultTimeout = 60000;
const testTimeoutMs = testCase.timeoutMs ?? defaultTimeout;
console.log(`running ${testName} with timeout ${testTimeoutMs}ms`);
const { token } = CancellationToken.timeout(testTimeoutMs);
const resultPromise: Promise<TestRunResult> = new Promise(