test: unflake contentTracing test

This commit is contained in:
John Kleinschmidt
2021-10-06 17:51:46 -04:00
parent a6031c05ac
commit 62a6525235

View File

@@ -16,11 +16,9 @@ ifdescribe(!(['arm', 'arm64'].includes(process.arch)))('contentTracing', () => {
return resultFilePath;
};
const outputFilePath = path.join(app.getPath('temp'), 'trace.json');
let outputFilePath: string;
beforeEach(() => {
if (fs.existsSync(outputFilePath)) {
fs.unlinkSync(outputFilePath);
}
outputFilePath = path.join(app.getPath('temp'), `trace${new Date().getTime()}.json`);
});
describe('startRecording', function () {