From e44ec98417ec4652a8e17cfe7a47cae1f993e54e Mon Sep 17 00:00:00 2001 From: didental Date: Wed, 21 Feb 2024 10:07:09 +0900 Subject: [PATCH] Set the adb pulling timeout value as 5-min --- lib/commands/recordscreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/recordscreen.js b/lib/commands/recordscreen.js index f14d421e..e333caf4 100644 --- a/lib/commands/recordscreen.js +++ b/lib/commands/recordscreen.js @@ -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));