Skip to content

Commit

Permalink
Set the adb pulling timeout value as 5-min
Browse files Browse the repository at this point in the history
  • Loading branch information
didental committed Feb 21, 2024
1 parent 884a55f commit e44ec98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/recordscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export async function stopRecordingScreen(options = {}) {
for (const pathOnDevice of this._screenRecordingProperties.records) {
const relativePath = path.resolve(tmpRoot, path.posix.basename(pathOnDevice));
localRecords.push(relativePath);
await this.adb.pull(pathOnDevice, relativePath);
await this.adb.pull(pathOnDevice, relativePath, { timeout: 5 * 60 * 1000 });
await this.adb.rimraf(pathOnDevice);
}
let resultFilePath = /** @type {string} */ (_.last(localRecords));
Expand Down

0 comments on commit e44ec98

Please sign in to comment.