Commit 318328f
committed
test: improve unexpected warnings error
If someone adds an `expectsWarning` listener without handling all
warning triggered in that test file, it'll result in a cryptic error
message. This improves the situation by providing an explicit error
about the unexpected warning.
PR-URL: #28138
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 084ffd8 commit 318328fCopy full SHA for 318328f
File tree
Expand file treeCollapse file tree
1 file changed
+9
-1
lines changedOpen diff view settings
Filter options
- test/common
Expand file treeCollapse file tree
1 file changed
+9
-1
lines changedOpen diff view settings
Collapse file
+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
528 | 528 | |
529 | 529 | |
530 | 530 | |
531 | | - |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
532 | 540 | |
533 | 541 | |
534 | 542 | |
|
0 commit comments