From fd9b8ea6659ddc1b6ce3d5295d72bbbe820b91ae Mon Sep 17 00:00:00 2001 From: Mohanjith Sudirikku Hannadige Date: Tue, 18 Apr 2023 13:11:34 +0300 Subject: [PATCH] fix: increase pull recent timeout (#802) Increase timeout of the pull command in pullRecent to 5 minutes. Videos longer than 30 minutes can take over 60s to pull. Fixes: https://github.com/appium/appium/issues/18522 --- lib/commands/media-projection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/media-projection.js b/lib/commands/media-projection.js index 0ebbda4d..53f69834 100644 --- a/lib/commands/media-projection.js +++ b/lib/commands/media-projection.js @@ -121,7 +121,8 @@ class MediaProjectionRecorder { } const dstPath = path.join(await tempDir.openDir(), recordings[0]); - await this.adb.pull(`${RECORDINGS_ROOT}/${recordings[0]}`, dstPath); + // increase timeout to 5 minutes because it might take a while to pull a large video file + await this.adb.pull(`${RECORDINGS_ROOT}/${recordings[0]}`, dstPath, {timeout: 300000}); return dstPath; }