Skip to content

Commit

Permalink
increase adbExec timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Jun 10, 2024
1 parent 6977d36 commit 3345d5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/device-managers/AndroidDeviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default class AndroidDeviceManager implements IDeviceManager {
private async getAdb(): Promise<any> {
try {
if (!this.adb) {
this.adb = await ADB.createADB({});
this.adb = await ADB.createADB({ adbExecTimeout: 60000 });
const client = Adb.createClient();
this.tracker = await client.trackDevices();
const originalADBTracking = this.createLocalAdbTracker(client, this.tracker, this.adb);
Expand Down
2 changes: 1 addition & 1 deletion src/modules
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class DevicePlugin extends BasePlugin {
pluginArgs.platform.toLowerCase() === 'android' ||
pluginArgs.platform.toLowerCase() == 'both'
) {
DevicePlugin.adbInstance = await ADB.createADB({});
DevicePlugin.adbInstance = await ADB.createADB({ adbExecTimeout: 60000 });
}
externalModule.onPluginLoaded(
cliArgs,
Expand Down Expand Up @@ -187,7 +187,7 @@ class DevicePlugin extends BasePlugin {
externalModule.updateServer(expressApp, httpServer);
if (hasEmulators && pluginArgs.platform.toLowerCase() === 'android') {
log.info('Emulators will be booted!!');
const adb = await ADB.createADB({});
const adb = await ADB.createADB({ adbExecTimeout: 60000 });
const array = pluginArgs.emulators || [];
const promiseArray = array.map(async (arr: any) => {
await Promise.all([await adb.launchAVD(arr.avdName, arr)]);
Expand Down

0 comments on commit 3345d5d

Please sign in to comment.