Commit 01a9552
test_runner: add mock-timers support for AbortSignal.timeout
PR-URL: #60751
Fixes: #60509
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Jacob Smith <jacob@frende.me>1 parent 59e7fb7 commit 01a9552Copy full SHA for 01a9552
2 files changed
+70-5Lines changed: 70 additions & 5 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal/test_runner/mock
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/test_runner/mock/mock_timers.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/mock/mock_timers.js+49-5Lines changed: 49 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
| 26 | + |
26 | 27 | |
27 | 28 | |
28 | 29 | |
| ||
34 | 35 | |
35 | 36 | |
36 | 37 | |
| 38 | + |
37 | 39 | |
38 | 40 | |
39 | 41 | |
| ||
60 | 62 | |
61 | 63 | |
62 | 64 | |
63 | | - |
| 65 | + |
| 66 | + |
64 | 67 | |
65 | | - |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
66 | 76 | |
67 | 77 | |
68 | 78 | |
| ||
115 | 125 | |
116 | 126 | |
117 | 127 | |
| 128 | + |
118 | 129 | |
119 | 130 | |
120 | 131 | |
| ||
297 | 308 | |
298 | 309 | |
299 | 310 | |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
300 | 319 | |
301 | 320 | |
302 | 321 | |
| ||
604 | 623 | |
605 | 624 | |
606 | 625 | |
| 626 | + |
| 627 | + |
| 628 | + |
| 629 | + |
| 630 | + |
| 631 | + |
| 632 | + |
| 633 | + |
| 634 | + |
| 635 | + |
| 636 | + |
| 637 | + |
| 638 | + |
| 639 | + |
| 640 | + |
| 641 | + |
| 642 | + |
| 643 | + |
| 644 | + |
| 645 | + |
| 646 | + |
607 | 647 | |
608 | 648 | |
609 | 649 | |
| ||
622 | 662 | |
623 | 663 | |
624 | 664 | |
| 665 | + |
| 666 | + |
| 667 | + |
625 | 668 | |
626 | 669 | |
627 | 670 | |
| ||
664 | 707 | |
665 | 708 | |
666 | 709 | |
667 | | - |
668 | | - |
| 710 | + |
| 711 | + |
669 | 712 | |
670 | 713 | |
| 714 | + |
671 | 715 | |
672 | 716 | |
673 | 717 | |
| ||
686 | 730 | |
687 | 731 | |
688 | 732 | |
689 | | - |
690 | 733 | |
| 734 | + |
691 | 735 | |
692 | 736 | |
693 | 737 | |
|
Collapse file
test/parallel/test-mock-timers-abortsignal-timeout.js
Copy file name to clipboard+21Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
0 commit comments