mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: unflake contentTracing test
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user