From 668c8a592aec1c0bb82c058a657ae4f8a3aea1cd Mon Sep 17 00:00:00 2001 From: David Goss Date: Tue, 3 Oct 2023 18:51:26 +0100 Subject: [PATCH] set timeouts appropriately --- .mocharc.yml | 2 +- src/api/load_support_spec.ts | 4 +++- src/api/run_cucumber_spec.ts | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.mocharc.yml b/.mocharc.yml index cc5ce9304..ec5b61292 100644 --- a/.mocharc.yml +++ b/.mocharc.yml @@ -7,4 +7,4 @@ forbid-pending: true recursive: true reporter: dot require: 'ts-node/register' -timeout: 5000 +timeout: 3000 diff --git a/src/api/load_support_spec.ts b/src/api/load_support_spec.ts index 49a0ba9ca..d4c0e517c 100644 --- a/src/api/load_support_spec.ts +++ b/src/api/load_support_spec.ts @@ -5,7 +5,9 @@ import { loadConfiguration } from './load_configuration' import { expect } from 'chai' import { setupEnvironment, teardownEnvironment } from './test_helpers' -describe('loadSupport', () => { +describe('loadSupport', function () { + this.timeout(10_000) + let environment: IRunEnvironment beforeEach(async () => { environment = await setupEnvironment() diff --git a/src/api/run_cucumber_spec.ts b/src/api/run_cucumber_spec.ts index 33279c80e..df9f82d44 100644 --- a/src/api/run_cucumber_spec.ts +++ b/src/api/run_cucumber_spec.ts @@ -6,7 +6,9 @@ import { loadSupport } from './load_support' import { loadConfiguration } from './load_configuration' import { setupEnvironment, teardownEnvironment } from './test_helpers' -describe('runCucumber', () => { +describe('runCucumber', function () { + this.timeout(10_000) + describe('preloading support code', () => { let environment: IRunEnvironment beforeEach(async () => {