Skip to content

Commit

Permalink
merge firstMatch and alwaysMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed May 9, 2021
1 parent 65903c5 commit 0c65ec1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appium-device-farm",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"description": "An appium 2.0 plugin that manages and create driver session on available devices",
"main": "./lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class DevicePlugin extends BasePlugin {
async createSession(next, driver, jwpDesCaps, jwpReqCaps, caps) {
let freeDevice;
await this.commandsQueueGuard.acquire('DeviceManager', async function () {
let firstMatch = caps.firstMatch[0];
let firstMatch = Object.assign({}, caps.firstMatch[0], caps.alwaysMatch);
devices = await fetchDevices();
let firstMatchPlatform = firstMatch['platformName'];
freeDevice = devices.getFreeDevice(firstMatchPlatform);
Expand Down

0 comments on commit 0c65ec1

Please sign in to comment.