From a8e5366330395a01e96c2c3cbfc8b7bc659063eb Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 9 Jan 2025 10:54:42 -0800 Subject: [PATCH] chore(bidi): write custom expectations only for timing out tests --- tests/bidi/expectationReporter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/bidi/expectationReporter.ts b/tests/bidi/expectationReporter.ts index 65371165fff50..c31cb74aaf666 100644 --- a/tests/bidi/expectationReporter.ts +++ b/tests/bidi/expectationReporter.ts @@ -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());