Skip to content

Commit 0dcf09c

Browse files
chore: Rename the timeout option
1 parent 26958a4 commit 0dcf09c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lib/commands/media-projection.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@ async function uploadRecordedMedia (localFile, remotePath = null, uploadOptions
2727
return (await util.toInMemoryBase64(localFile)).toString();
2828
}
2929

30-
const {user, pass, method, headers, fileFieldName, formFields, timeout} = uploadOptions;
30+
const {
31+
user,
32+
pass,
33+
method,
34+
headers,
35+
fileFieldName,
36+
formFields,
37+
timeout: uploadTimeout,
38+
} = uploadOptions;
3139
const options = {
3240
method: method || 'PUT',
3341
headers,
@@ -233,7 +241,8 @@ commands.mobileIsMediaProjectionRecordingRunning = async function mobileIsMediaP
233241
* @property {string?} fileFieldName [file] The name of the form field, where the file content BLOB should be stored for
234242
* http(s) uploads
235243
* @property {Object|Array<Pair>?} formFields Additional form fields for multipart http(s) uploads
236-
* @property {number?} timeout - The actual request timeout in milliseconds; defaults to @appium/support net DEFAULT_TIMEOUT_MS
244+
* @property {number?} uploadTimeout - The actual media upload request timeout in milliseconds;
245+
* defaults to @appium/support net DEFAULT_TIMEOUT_MS
237246
*/
238247

239248
/**

0 commit comments

Comments
 (0)