From 91d9290d37a8bdeb264f8e5732d8d293a344de84 Mon Sep 17 00:00:00 2001 From: Ranko Orlic Date: Wed, 3 Apr 2024 11:59:15 +0200 Subject: [PATCH] fix: cannot preserve timestamps --- src/controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller.ts b/src/controller.ts index 4149bdc..b401032 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -101,7 +101,7 @@ export class Controller { console.warn(`[WARN] Killing pid ${process?.pid}...`); const killed = process?.kill; console.warn(killed ? `[WARN] Test ${id} was cancelled.` : `Failed to kill test ${id} (pid: ${process?.pid}).`); - return this._upsertTest({run: {...test.run, status: TestRunStatus.cancelled} as TestRun, process: undefined} as Test); + return this._upsertTest({ run: { ...test.run, status: TestRunStatus.cancelled } as TestRun, process: undefined } as Test); } private _writeMetadata(run: TestRun) { @@ -121,7 +121,7 @@ export class Controller { const tempPath = path.join(this._config.tempFolder, id); const testPath = path.join(this._config.testFolder, id); - fs.cpSync(tempPath, testPath, { preserveTimestamps: true, recursive: true }); + fs.cpSync(tempPath, testPath, { recursive: true }); fs.rmSync(tempPath, { recursive: true }); }