@wdio/local-runner 8.0.2 → 8.0.3
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/run.js +1 -1
- package/build/worker.d.ts.map +1 -1
- package/build/worker.js +2 -1
- package/package.json +3 -3
package/build/run.js
CHANGED
|
@@ -11,7 +11,7 @@ runner.on('error', ({ name, message, stack }) => process.send({
|
|
|
11
11
|
content: { name, message, stack }
|
|
12
12
|
}));
|
|
13
13
|
process.on('message', (m) => {
|
|
14
|
-
if (!m || !m.command) {
|
|
14
|
+
if (!m || !m.command || !runner[m.command]) {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
log.info(`Run worker command: ${m.command}`);
|
package/build/worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":";;AAEA,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":";;AAEA,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAkBjE;;;;GAI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.js';
|
|
|
9
9
|
const log = logger('@wdio/local-runner');
|
|
10
10
|
const replQueue = new ReplQueue();
|
|
11
11
|
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
12
|
+
const ACCEPTABLE_BUSY_COMMANDS = ['switchDebugState', 'endSession'];
|
|
12
13
|
const stdOutStream = new RunnerStream();
|
|
13
14
|
const stdErrStream = new RunnerStream();
|
|
14
15
|
stdOutStream.pipe(process.stdout);
|
|
@@ -167,7 +168,7 @@ export default class WorkerInstance extends EventEmitter {
|
|
|
167
168
|
*/
|
|
168
169
|
postMessage(command, args) {
|
|
169
170
|
const { cid, configFile, capabilities, specs, retries, isBusy } = this;
|
|
170
|
-
if (isBusy && command
|
|
171
|
+
if (isBusy && !ACCEPTABLE_BUSY_COMMANDS.includes(command)) {
|
|
171
172
|
return log.info(`worker with cid ${cid} already busy and can't take new commands`);
|
|
172
173
|
}
|
|
173
174
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/local-runner",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "A WebdriverIO runner to run tests locally",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-local-runner",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/stream-buffers": "^3.0.4",
|
|
31
31
|
"@wdio/logger": "8.0.0",
|
|
32
32
|
"@wdio/repl": "8.0.0",
|
|
33
|
-
"@wdio/runner": "8.0.
|
|
33
|
+
"@wdio/runner": "8.0.3",
|
|
34
34
|
"@wdio/types": "8.0.0",
|
|
35
35
|
"async-exit-hook": "^2.0.1",
|
|
36
36
|
"split2": "^4.1.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a1883b44e736f00b7602f28bed910ace4d514c7e"
|
|
43
43
|
}
|