@wdio/appium-service 8.40.3 → 8.40.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/launcher.d.ts +1 -0
- package/build/launcher.d.ts.map +1 -1
- package/build/launcher.js +5 -0
- package/package.json +3 -3
package/build/launcher.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default class AppiumLauncher implements Services.ServiceInstance {
|
|
|
8
8
|
private readonly _appiumCliArgs;
|
|
9
9
|
private readonly _args;
|
|
10
10
|
private _process?;
|
|
11
|
+
private _isShuttingDown;
|
|
11
12
|
constructor(_options: AppiumServiceConfig, _capabilities: Capabilities.RemoteCapabilities, _config?: Options.Testrunner | undefined);
|
|
12
13
|
private _getCommand;
|
|
13
14
|
/**
|
package/build/launcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAIlE,OAAO,KAAK,EAAyB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAY5E,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,QAAQ,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAIlE,OAAO,KAAK,EAAyB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAY5E,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,QAAQ,CAAC,eAAe;IAQ/D,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO,CAAC;IATpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAe;IAC9C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;IAC7C,OAAO,CAAC,QAAQ,CAAC,CAA+C;IAChE,OAAO,CAAC,eAAe,CAAiB;gBAG5B,QAAQ,EAAE,mBAAmB,EAC7B,aAAa,EAAE,YAAY,CAAC,kBAAkB,EAC9C,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,YAAA;YAS1B,WAAW;IAqBzB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAkDlB,SAAS;IAiCf,UAAU;IAiBV,OAAO,CAAC,YAAY;YAuEN,kBAAkB;mBAeX,iBAAiB;CAezC"}
|
package/build/launcher.js
CHANGED
|
@@ -28,6 +28,7 @@ export default class AppiumLauncher {
|
|
|
28
28
|
_appiumCliArgs = [];
|
|
29
29
|
_args;
|
|
30
30
|
_process;
|
|
31
|
+
_isShuttingDown = false;
|
|
31
32
|
constructor(_options, _capabilities, _config) {
|
|
32
33
|
this._options = _options;
|
|
33
34
|
this._capabilities = _capabilities;
|
|
@@ -120,6 +121,7 @@ export default class AppiumLauncher {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
onComplete() {
|
|
124
|
+
this._isShuttingDown = true;
|
|
123
125
|
// Kill appium and all process' spawned from it
|
|
124
126
|
if (this._process && this._process.pid) {
|
|
125
127
|
// Ensure all child processes are also killed
|
|
@@ -183,6 +185,9 @@ export default class AppiumLauncher {
|
|
|
183
185
|
rejectOnce(new Error(error));
|
|
184
186
|
});
|
|
185
187
|
process.once('exit', (exitCode) => {
|
|
188
|
+
if (this._isShuttingDown) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
186
191
|
let errorMessage = `Appium exited before timeout (exit code: ${exitCode})`;
|
|
187
192
|
if (exitCode === 2) {
|
|
188
193
|
errorMessage += '\n' + (error?.toString() || 'Check that you don\'t already have a running Appium service.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/appium-service",
|
|
3
|
-
"version": "8.40.
|
|
3
|
+
"version": "8.40.5",
|
|
4
4
|
"description": "A WebdriverIO service to start & stop Appium Server",
|
|
5
5
|
"author": "Morten Bjerg Gregersen <morten@mogee.dk>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-appium-service",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"import-meta-resolve": "^4.0.0",
|
|
42
42
|
"param-case": "^4.0.0",
|
|
43
43
|
"tree-kill": "^1.2.2",
|
|
44
|
-
"webdriverio": "8.40.
|
|
44
|
+
"webdriverio": "8.40.5"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "c94fcc0cffccc8cf3a217bc7b77794f988df8e11"
|
|
50
50
|
}
|