mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
tools: improve output for unexpected passes in WTP tests
PR-URL: https://github.com/nodejs/node/pull/62587 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 file changed
+4
-3
+4
-3
@@ -806,13 +806,14 @@ class WPTRunner {
|
||||
}
|
||||
|
||||
// Full check: every expected to fail test is present
|
||||
if (specs.failedTests.some((expectedToFail) => {
|
||||
const _unexpectedPasses = specs.failedTests.filter((expectedToFail) => {
|
||||
if (specs.flakyTests.includes(expectedToFail)) {
|
||||
return false;
|
||||
}
|
||||
return this.results[key]?.fail?.expected?.includes(expectedToFail) !== true;
|
||||
})) {
|
||||
unexpectedPasses.push(key);
|
||||
});
|
||||
if (_unexpectedPasses.length) {
|
||||
unexpectedPasses.push(..._unexpectedPasses.map((name) => `${key}:${name}`));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user