From 759c3fa7cf7dd1b3b10348b6b48bf1298169231d Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sun, 16 Aug 2020 16:39:46 +0200 Subject: [PATCH] Tweak reporter integration tests Maybe it's the IPC changes, but they started to fail on Windows. --- test-tap/fixture/report/regular/uncaught-exception.js | 2 +- test-tap/reporters/mini.regular.v10.log | 4 ++-- test-tap/reporters/mini.regular.v12.log | 7 +++---- test-tap/reporters/mini.regular.v14.log | 7 +++---- test-tap/reporters/tap.regular.v10.log | 4 +++- test-tap/reporters/tap.regular.v12.log | 9 +++++---- test-tap/reporters/tap.regular.v14.log | 9 +++++---- test-tap/reporters/verbose.regular.v10.log | 4 ++-- test-tap/reporters/verbose.regular.v12.log | 7 +++---- test-tap/reporters/verbose.regular.v14.log | 7 +++---- 10 files changed, 30 insertions(+), 30 deletions(-) diff --git a/test-tap/fixture/report/regular/uncaught-exception.js b/test-tap/fixture/report/regular/uncaught-exception.js index 020ebb012..e23a53f5c 100644 --- a/test-tap/fixture/report/regular/uncaught-exception.js +++ b/test-tap/fixture/report/regular/uncaught-exception.js @@ -1,7 +1,7 @@ const test = require('../../../..'); test('passes', t => { - setTimeout(() => { + setImmediate(() => { throw new Error('Can’t catch me'); }); t.pass(); diff --git a/test-tap/reporters/mini.regular.v10.log b/test-tap/reporters/mini.regular.v10.log index 9a5cea281..a05131d46 100644 --- a/test-tap/reporters/mini.regular.v10.log +++ b/test-tap/reporters/mini.regular.v10.log @@ -515,13 +515,13 @@ uncaught-exception.js:5 - 4: setTimeout(() => { + 4: setImmediate(() => {  5: throw new Error('Can’t catch me'); 6: }); Error: Can’t catch me - › Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + › Immediate.setImmediate (test-tap/fixture/report/regular/uncaught-exception.js:5:9) diff --git a/test-tap/reporters/mini.regular.v12.log b/test-tap/reporters/mini.regular.v12.log index e4dfaac1a..6977a162b 100644 --- a/test-tap/reporters/mini.regular.v12.log +++ b/test-tap/reporters/mini.regular.v12.log @@ -497,15 +497,14 @@ uncaught-exception.js:5 - 4: setTimeout(() => { + 4: setImmediate(() => {  5: throw new Error('Can’t catch me'); 6: }); Error: Can’t catch me - › Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) - › listOnTimeout (internal/timers.js) - › processTimers (internal/timers.js) + › Immediate. (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + › processImmediate (internal/timers.js) diff --git a/test-tap/reporters/mini.regular.v14.log b/test-tap/reporters/mini.regular.v14.log index e4dfaac1a..6977a162b 100644 --- a/test-tap/reporters/mini.regular.v14.log +++ b/test-tap/reporters/mini.regular.v14.log @@ -497,15 +497,14 @@ uncaught-exception.js:5 - 4: setTimeout(() => { + 4: setImmediate(() => {  5: throw new Error('Can’t catch me'); 6: }); Error: Can’t catch me - › Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) - › listOnTimeout (internal/timers.js) - › processTimers (internal/timers.js) + › Immediate. (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + › processImmediate (internal/timers.js) diff --git a/test-tap/reporters/tap.regular.v10.log b/test-tap/reporters/tap.regular.v10.log index 09ad84f4c..e0d6eddb1 100644 --- a/test-tap/reporters/tap.regular.v10.log +++ b/test-tap/reporters/tap.regular.v10.log @@ -323,7 +323,9 @@ not ok 25 - Error: Can’t catch me --- name: Error message: Can’t catch me - at: 'Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)' + at: >- + Immediate.setImmediate + (test-tap/fixture/report/regular/uncaught-exception.js:5:9) ... ---tty-stream-chunk-separator # uncaught-exception.js exited with a non-zero exit code: 1 diff --git a/test-tap/reporters/tap.regular.v12.log b/test-tap/reporters/tap.regular.v12.log index 1c549e76e..012168d22 100644 --- a/test-tap/reporters/tap.regular.v12.log +++ b/test-tap/reporters/tap.regular.v12.log @@ -296,10 +296,11 @@ not ok 25 - Error: Can’t catch me --- name: Error message: Can’t catch me - at: |- - Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) - listOnTimeout (internal/timers.js) - processTimers (internal/timers.js) + at: >- + Immediate. + (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + + processImmediate (internal/timers.js) ... ---tty-stream-chunk-separator # uncaught-exception.js exited with a non-zero exit code: 1 diff --git a/test-tap/reporters/tap.regular.v14.log b/test-tap/reporters/tap.regular.v14.log index 1c549e76e..012168d22 100644 --- a/test-tap/reporters/tap.regular.v14.log +++ b/test-tap/reporters/tap.regular.v14.log @@ -296,10 +296,11 @@ not ok 25 - Error: Can’t catch me --- name: Error message: Can’t catch me - at: |- - Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) - listOnTimeout (internal/timers.js) - processTimers (internal/timers.js) + at: >- + Immediate. + (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + + processImmediate (internal/timers.js) ... ---tty-stream-chunk-separator # uncaught-exception.js exited with a non-zero exit code: 1 diff --git a/test-tap/reporters/verbose.regular.v10.log b/test-tap/reporters/verbose.regular.v10.log index 8c0b7b721..f7d3ea109 100644 --- a/test-tap/reporters/verbose.regular.v10.log +++ b/test-tap/reporters/verbose.regular.v10.log @@ -87,13 +87,13 @@ uncaught-exception.js:5 - 4: setTimeout(() => { + 4: setImmediate(() => {  5: throw new Error('Can’t catch me'); 6: }); Error: Can’t catch me - › Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + › Immediate.setImmediate (test-tap/fixture/report/regular/uncaught-exception.js:5:9) ---tty-stream-chunk-separator ✖ uncaught-exception.js exited with a non-zero exit code: 1 diff --git a/test-tap/reporters/verbose.regular.v12.log b/test-tap/reporters/verbose.regular.v12.log index 38a5fa0b2..ac183cc3e 100644 --- a/test-tap/reporters/verbose.regular.v12.log +++ b/test-tap/reporters/verbose.regular.v12.log @@ -87,15 +87,14 @@ uncaught-exception.js:5 - 4: setTimeout(() => { + 4: setImmediate(() => {  5: throw new Error('Can’t catch me'); 6: }); Error: Can’t catch me - › Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) - › listOnTimeout (internal/timers.js) - › processTimers (internal/timers.js) + › Immediate. (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + › processImmediate (internal/timers.js) ---tty-stream-chunk-separator ✖ uncaught-exception.js exited with a non-zero exit code: 1 diff --git a/test-tap/reporters/verbose.regular.v14.log b/test-tap/reporters/verbose.regular.v14.log index 38a5fa0b2..ac183cc3e 100644 --- a/test-tap/reporters/verbose.regular.v14.log +++ b/test-tap/reporters/verbose.regular.v14.log @@ -87,15 +87,14 @@ uncaught-exception.js:5 - 4: setTimeout(() => { + 4: setImmediate(() => {  5: throw new Error('Can’t catch me'); 6: }); Error: Can’t catch me - › Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9) - › listOnTimeout (internal/timers.js) - › processTimers (internal/timers.js) + › Immediate. (test-tap/fixture/report/regular/uncaught-exception.js:5:9) + › processImmediate (internal/timers.js) ---tty-stream-chunk-separator ✖ uncaught-exception.js exited with a non-zero exit code: 1