Skip to content

Commit

Permalink
cherry-pick(#23171): fix(tracing): when zipping remotely, use correct…
Browse files Browse the repository at this point in the history
… file name (#23173)

Fixes #23108.
  • Loading branch information
dgozman committed May 19, 2023
1 parent 7effaf4 commit bf25a93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export class Tracing extends SdkObject implements InstrumentationListener, Snaps
for (const entry of entries)
zipFile.addFile(entry.value, entry.name);
zipFile.end();
const zipFileName = state.traceFile + '.zip';
const zipFileName = state.traceFile.file + '.zip';
zipFile.outputStream.pipe(fs.createWriteStream(zipFileName)).on('close', () => {
const artifact = new Artifact(this._context, zipFileName);
artifact.reportFinished();
Expand Down
1 change: 0 additions & 1 deletion tests/library/tracing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,6 @@ test('should record global request trace', async ({ request, context, server },
});

test('should store global request traces separately', async ({ request, server, playwright, browserName, mode }, testInfo) => {
test.fixme(browserName === 'chromium' && mode === 'driver', 'https://github.com/microsoft/playwright/issues/23108');
const request2 = await playwright.request.newContext();
await Promise.all([
(request as any)._tracing.start({ snapshots: true }),
Expand Down

0 comments on commit bf25a93

Please sign in to comment.