Commit 858b583
test_runner: defer inheriting hooks until run()
This commit updates the way the test runner computes inherited
hooks. Instead of computing them when the Test/Suite is
constructed, they are now computed just prior to running the
Test/Suite. The reason is because when multiple test files are
run in the same process, it is possible for the inherited hooks
to change as more files are loaded.
PR-URL: #53927
Fixes: #51548
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 45b0250 commit 858b583Copy full SHA for 858b583
1 file changed
+25-17Lines changed: 25 additions & 17 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal/test_runner
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/test_runner/test.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/test.js+25-17Lines changed: 25 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
408 | 408 | |
409 | 409 | |
410 | 410 | |
411 | | - |
412 | | - |
413 | | - |
414 | | - |
415 | | - |
416 | | - |
417 | | - |
418 | | - |
419 | 411 | |
420 | 412 | |
421 | 413 | |
| ||
431 | 423 | |
432 | 424 | |
433 | 425 | |
434 | | - |
435 | | - |
436 | | - |
437 | | - |
438 | | - |
439 | | - |
440 | | - |
441 | | - |
442 | 426 | |
443 | 427 | |
444 | 428 | |
| ||
514 | 498 | |
515 | 499 | |
516 | 500 | |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
517 | 509 | |
518 | 510 | |
519 | 511 | |
| ||
691 | 683 | |
692 | 684 | |
693 | 685 | |
| 686 | + |
| 687 | + |
| 688 | + |
| 689 | + |
| 690 | + |
| 691 | + |
| 692 | + |
| 693 | + |
| 694 | + |
| 695 | + |
| 696 | + |
| 697 | + |
| 698 | + |
| 699 | + |
| 700 | + |
694 | 701 | |
695 | 702 | |
696 | 703 | |
| ||
715 | 722 | |
716 | 723 | |
717 | 724 | |
718 | | - |
719 | 725 | |
720 | 726 | |
721 | 727 | |
| ||
817 | 823 | |
818 | 824 | |
819 | 825 | |
| 826 | + |
820 | 827 | |
821 | 828 | |
822 | 829 | |
| ||
1211 | 1218 | |
1212 | 1219 | |
1213 | 1220 | |
| 1221 | + |
1214 | 1222 | |
1215 | 1223 | |
1216 | 1224 | |
|
0 commit comments