Skip to content

Commit

Permalink
fix: cannot preserve timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
rorlic committed Apr 3, 2024
1 parent 642aea6 commit 91d9290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 });
}

Expand Down

0 comments on commit 91d9290

Please sign in to comment.