Skip to content

Commit 9b2585c

Browse files
authored
fix: 'should collect trace with resources, but no js' test in service mode (#28628)
1 parent 9d91b7c commit 9b2585c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playwright-core/src/client/elementHandle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export async function convertInputFiles(files: string | FilePayload | string[] |
266266
if (context._connection.isRemote()) {
267267
const streams: channels.WritableStreamChannel[] = await Promise.all((items as string[]).map(async item => {
268268
const lastModifiedMs = (await fs.promises.stat(item)).mtimeMs;
269-
const { writableStream: stream } = await context._channel.createTempFile({ name: path.basename(item), lastModifiedMs });
269+
const { writableStream: stream } = await context._wrapApiCall(() => context._channel.createTempFile({ name: path.basename(item), lastModifiedMs }), true);
270270
const writable = WritableStream.from(stream);
271271
await pipelineAsync(fs.createReadStream(item), writable.stream());
272272
return stream;

0 commit comments

Comments
 (0)