Skip to content

Commit

Permalink
chore(bidi): write custom expectations only for timing out tests (#34270
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yury-s authored Jan 9, 2025
1 parent c465e21 commit 201fc48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/bidi/expectationReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 201fc48

Please sign in to comment.