@brillout/test-e2e 0.4.8 → 0.4.9

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.
Files changed (2) hide show
  1. package/dist/setup.js +14 -4
  2. package/package.json +1 -1
package/dist/setup.js CHANGED
@@ -314,22 +314,32 @@ function execRunScript({ onStdout, onFailure, onExit, }) {
314
314
  });
315
315
  proc.stdout.on('data', (chunk) => {
316
316
  const data = String(chunk);
317
- // assertNotExited(data)
318
- (0, utils_2.assert)(getRunInfo().cmd === cmd);
319
317
  Logs_1.Logs.add({
320
318
  logSource: 'stdout',
321
319
  logText: data,
322
320
  });
321
+ /* These assertions sometimes fails, see comments in assertNotExited()
322
+ assertNotExited(data)
323
+ assert(getRunInfo().cmd === cmd)
324
+ /*/
325
+ if (procExited)
326
+ return undefined;
327
+ //*/
323
328
  onStdout?.(data);
324
329
  });
325
330
  proc.stderr.on('data', async (chunk) => {
326
331
  const data = String(chunk);
327
- // assertNotExited(data)
328
- (0, utils_2.assert)(getRunInfo().cmd === cmd);
329
332
  Logs_1.Logs.add({
330
333
  logSource: 'stderr',
331
334
  logText: data,
332
335
  });
336
+ /* These assertions sometimes fails, see comments in assertNotExited()
337
+ assertNotExited(data)
338
+ assert(getRunInfo().cmd === cmd)
339
+ /*/
340
+ if (procExited)
341
+ return undefined;
342
+ //*/
333
343
  if (data.includes('EADDRINUSE')) {
334
344
  await exitAndFail(new Error('Port conflict? Port already in use EADDRINUSE.'));
335
345
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {