Skip to content

Commit 759c3fa

Browse files
committed
Tweak reporter integration tests
Maybe it's the IPC changes, but they started to fail on Windows.
1 parent dc83c39 commit 759c3fa

10 files changed

+30
-30
lines changed

test-tap/fixture/report/regular/uncaught-exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const test = require('../../../..');
22

33
test('passes', t => {
4-
setTimeout(() => {
4+
setImmediate(() => {
55
throw new Error('Can’t catch me');
66
});
77
t.pass();

test-tap/reporters/mini.regular.v10.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,13 +515,13 @@
515515

516516
uncaught-exception.js:5
517517

518-
4: setTimeout(() => {
518+
4: setImmediate(() => {
519519
 5: throw new Error('Can’t catch me');
520520
6: });
521521

522522
Error: Can’t catch me
523523

524-
› Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
524+
› Immediate.setImmediate (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
525525

526526

527527

test-tap/reporters/mini.regular.v12.log

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,15 +497,14 @@
497497

498498
uncaught-exception.js:5
499499

500-
4: setTimeout(() => {
500+
4: setImmediate(() => {
501501
 5: throw new Error('Can’t catch me');
502502
6: });
503503

504504
Error: Can’t catch me
505505

506-
› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
507-
› listOnTimeout (internal/timers.js)
508-
› processTimers (internal/timers.js)
506+
› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
507+
› processImmediate (internal/timers.js)
509508

510509

511510

test-tap/reporters/mini.regular.v14.log

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,15 +497,14 @@
497497

498498
uncaught-exception.js:5
499499

500-
4: setTimeout(() => {
500+
4: setImmediate(() => {
501501
 5: throw new Error('Can’t catch me');
502502
6: });
503503

504504
Error: Can’t catch me
505505

506-
› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
507-
› listOnTimeout (internal/timers.js)
508-
› processTimers (internal/timers.js)
506+
› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
507+
› processImmediate (internal/timers.js)
509508

510509

511510

test-tap/reporters/tap.regular.v10.log

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ not ok 25 - Error: Can’t catch me
323323
---
324324
name: Error
325325
message: Can’t catch me
326-
at: 'Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)'
326+
at: >-
327+
Immediate.setImmediate
328+
(test-tap/fixture/report/regular/uncaught-exception.js:5:9)
327329
...
328330
---tty-stream-chunk-separator
329331
# uncaught-exception.js exited with a non-zero exit code: 1

test-tap/reporters/tap.regular.v12.log

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,11 @@ not ok 25 - Error: Can’t catch me
296296
---
297297
name: Error
298298
message: Can’t catch me
299-
at: |-
300-
Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
301-
listOnTimeout (internal/timers.js)
302-
processTimers (internal/timers.js)
299+
at: >-
300+
Immediate.<anonymous>
301+
(test-tap/fixture/report/regular/uncaught-exception.js:5:9)
302+
303+
processImmediate (internal/timers.js)
303304
...
304305
---tty-stream-chunk-separator
305306
# uncaught-exception.js exited with a non-zero exit code: 1

test-tap/reporters/tap.regular.v14.log

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,11 @@ not ok 25 - Error: Can’t catch me
296296
---
297297
name: Error
298298
message: Can’t catch me
299-
at: |-
300-
Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
301-
listOnTimeout (internal/timers.js)
302-
processTimers (internal/timers.js)
299+
at: >-
300+
Immediate.<anonymous>
301+
(test-tap/fixture/report/regular/uncaught-exception.js:5:9)
302+
303+
processImmediate (internal/timers.js)
303304
...
304305
---tty-stream-chunk-separator
305306
# uncaught-exception.js exited with a non-zero exit code: 1

test-tap/reporters/verbose.regular.v10.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@
8787

8888
uncaught-exception.js:5
8989

90-
4: setTimeout(() => {
90+
4: setImmediate(() => {
9191
 5: throw new Error('Can’t catch me');
9292
6: });
9393

9494
Error: Can’t catch me
9595

96-
› Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
96+
› Immediate.setImmediate (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
9797

9898
---tty-stream-chunk-separator
9999
✖ uncaught-exception.js exited with a non-zero exit code: 1

test-tap/reporters/verbose.regular.v12.log

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,14 @@
8787

8888
uncaught-exception.js:5
8989

90-
4: setTimeout(() => {
90+
4: setImmediate(() => {
9191
 5: throw new Error('Can’t catch me');
9292
6: });
9393

9494
Error: Can’t catch me
9595

96-
› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
97-
› listOnTimeout (internal/timers.js)
98-
› processTimers (internal/timers.js)
96+
› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
97+
› processImmediate (internal/timers.js)
9998

10099
---tty-stream-chunk-separator
101100
✖ uncaught-exception.js exited with a non-zero exit code: 1

test-tap/reporters/verbose.regular.v14.log

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,14 @@
8787

8888
uncaught-exception.js:5
8989

90-
4: setTimeout(() => {
90+
4: setImmediate(() => {
9191
 5: throw new Error('Can’t catch me');
9292
6: });
9393

9494
Error: Can’t catch me
9595

96-
› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
97-
› listOnTimeout (internal/timers.js)
98-
› processTimers (internal/timers.js)
96+
› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
97+
› processImmediate (internal/timers.js)
9998

10099
---tty-stream-chunk-separator
101100
✖ uncaught-exception.js exited with a non-zero exit code: 1

0 commit comments

Comments
 (0)