Skip to content

Commit 015cb8c

Browse files
fix: respect reset execution timeout timer on each run (#2272)
1 parent a65c020 commit 015cb8c

File tree

1 file changed

+4
-1
lines changed
  • packages/respect-core/src

1 file changed

+4
-1
lines changed

packages/respect-core/src/run.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export async function run(options: RespectOptions): Promise<RunFileResult[]> {
3636
const { files, executionTimeout, collectSpecData } = options;
3737

3838
// Don't create a timer if executionTimeout is not set
39-
executionTimeout && Timer.getInstance(executionTimeout);
39+
if (executionTimeout) {
40+
Timer.reset();
41+
Timer.getInstance(executionTimeout);
42+
}
4043

4144
const testsRunProblemsStatus: boolean[] = [];
4245
const runAllFilesResult = [];

0 commit comments

Comments
 (0)