Skip to content

Commit

Permalink
added new db instance
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Apr 23, 2024
1 parent b59e0bb commit c6e99d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build-web-and-plugin": "npx tsc -b && npm run buildAndCopyWeb && npm run copy-files",
"copy-files": "cp -R src/public lib",
"buildAndCopyWeb": "sh buildAndCopyWeb.sh",
"prepublish": "npx tsc && npm run buildAndCopyWeb && npm run copy-files",
"prepublish": "npx tsc && npm run buildAndCopyWeb && npm run copy-files && npm run bundle",
"lint": "eslint . --ext .ts,.tsx --fix",
"prettier-check": "prettier 'src/**/*.ts' 'web/**/*.ts' 'web/**/*.tsx' --check --verbose",
"prettier": "prettier 'src/**/*.ts' 'web/**/*.ts' 'web/**/*.tsx' 'test/**/*.ts' --write --single-quote",
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const basePath = path.join(os.homedir(), '.cache', 'appium-device-farm');

export const config: Config = {
cacheDir: basePath,
databasePath: `${basePath}/device-farm.db?connection_limit=1`,
databasePath: `${basePath}/device-farm-latest.db?connection_limit=1`,
sessionAssetsPath: path.join(basePath, 'assets', 'sessions'),
takeScreenshotsFor: ['click', 'setUrl', 'setValue', 'performActions'],
};
2 changes: 1 addition & 1 deletion src/device-managers/AndroidDeviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export default class AndroidDeviceManager implements IDeviceManager {
await waitForCondition(
async () => {
try {
services = await adbInstance.shell(['-s', udid, 'service', 'list']);
services = await adbInstance.adbExec(['-s', udid, 'shell', 'service', 'list']);
return requiredServicesRe.every((pattern) => pattern.test(services));
} catch (err: any) {
log.debug(`Waiting for emulator startup. Intermediate error: ${err.message}`);
Expand Down

0 comments on commit c6e99d9

Please sign in to comment.