Skip to content

Commit 0f725fa

Browse files
Fix start emulator
1 parent 45cdbbe commit 0f725fa

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lib/appium-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export class AppiumServer {
8585

8686
this._server.on("exit", (code, signal) => {
8787
log(`Appium terminated due signal: ${signal} and code: ${code}`, this._args.verbose);
88-
console.log(this._server.killed);
8988
resolve();
9089
});
9190

@@ -103,10 +102,11 @@ export class AppiumServer {
103102
try {
104103
if (isWin) {
105104
shutdown(this._server, this._args.verbose);
105+
this._server.kill("SIGINT");
106106
} else {
107+
this._server.kill("SIGINT");
107108
this._server.kill("SIGINT");
108109
shutdown(this._server, this._args.verbose);
109-
//this._server.kill("SIGKILL");
110110
}
111111
} catch (error) {
112112
console.log(error);

lib/emulator-manager.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,8 @@ export class EmulatorManager {
113113
detached: false
114114
});
115115

116-
let response: boolean = await waitForOutput(emulator, new RegExp(args.appiumCaps.avd, "i"), new RegExp("Error", "i"), args.appiumCaps.lt || 180000, args.verbose);
117-
if (response) {
118-
response = EmulatorManager.checkIfEmulatorIsRunning(id);
119-
}
120-
116+
let response = EmulatorManager.checkIfEmulatorIsRunning(id);
117+
console.log("KORRRRR", response);
121118
return { response: response, process: emulator };
122119
}
123120

0 commit comments

Comments
 (0)