Skip to content

Commit 6486aa2

Browse files
committed
set Android System port for each session
1 parent 5868921 commit 6486aa2

File tree

3 files changed

+4
-89
lines changed

3 files changed

+4
-89
lines changed

package-lock.json

Lines changed: 2 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "appium-device-farm",
3-
"version": "2.0.0-beta.4",
3+
"version": "2.0.0-beta.5",
44
"description": "An appium 2.0 plugin that manages and create driver session on available devices",
55
"main": "./lib/index.js",
66
"scripts": {

src/CapabilityManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function androidCapabilities(
1616
freeDevice: { udid: any; name: string; systemPort: number }
1717
) {
1818
caps.firstMatch[0]['appium:udid'] = freeDevice.udid;
19-
caps.firstMatch[0]['appium:systemPort'] = freeDevice.systemPort;
19+
caps.firstMatch[0]['appium:systemPort'] = await getPort();
2020
caps.firstMatch[0]['appium:chromeDriverPort'] = await getPort();
2121
if (!isCapabilityAlreadyPresent(caps, 'appium:mjpegServerPort')) {
2222
caps.firstMatch[0]['appium:mjpegServerPort'] = await getPort();

0 commit comments

Comments
 (0)