Skip to content

Commit 0c65ec1

Browse files
committed
merge firstMatch and alwaysMatch
1 parent 65903c5 commit 0c65ec1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
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": "1.0.0-beta.5",
3+
"version": "1.0.0-beta.6",
44
"description": "An appium 2.0 plugin that manages and create driver session on available devices",
55
"main": "./lib/index.js",
66
"scripts": {

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class DevicePlugin extends BasePlugin {
1414
async createSession(next, driver, jwpDesCaps, jwpReqCaps, caps) {
1515
let freeDevice;
1616
await this.commandsQueueGuard.acquire('DeviceManager', async function () {
17-
let firstMatch = caps.firstMatch[0];
17+
let firstMatch = Object.assign({}, caps.firstMatch[0], caps.alwaysMatch);
1818
devices = await fetchDevices();
1919
let firstMatchPlatform = firstMatch['platformName'];
2020
freeDevice = devices.getFreeDevice(firstMatchPlatform);

0 commit comments

Comments
 (0)