chore(bidi): write custom expectations only for timing out tests (#34270)

This commit is contained in:
Yury Semikhatsky 2025-01-09 11:10:14 -08:00 committed by GitHub
parent c465e21161
commit 201fc48cf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ class ExpectationReporter implements Reporter {
const outcome = getOutcome(test);
// Strip root and project names.
const key = test.titlePath().slice(2).join(' ');
if (!expectations.has(key) || expectations.get(key) === 'unknown' ||
(expectations.get(key) === 'fail' && outcome === 'pass'))
if (outcome === 'timeout')
expectations.set(key, outcome);
}
const keys = Array.from(expectations.keys());