Skip to content

Commit 768aa1f

Browse files
Connor ClarkDevtools-frontend LUCI CQ
authored andcommitted
Reduce flakiness of CPU calibration test
According to flaky test history[1], the primary failure mode was CI machines being too slow to calibrate the mid-tier device. [1] https://tinyurl.com/yc6etpjx Bug: 311438112 Change-Id: Iac905fcb6f4f0a12599036f4f62271462311091b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6265743 Auto-Submit: Connor Clark <[email protected]> Commit-Queue: Connor Clark <[email protected]> Commit-Queue: Paul Irish <[email protected]> Reviewed-by: Paul Irish <[email protected]>
1 parent a697895 commit 768aa1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/throttling/cpu_calibration_test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ describe('CPU Calibration', () => {
2525
await click('.calibrate-button');
2626
await waitForElementWithTextContent('Recalibrate');
2727

28+
// Verify that at least the low-tier device was able to be calibrated (CI may be to slow for mid-tier calibration).
2829
const results = await getAllTextContents('.cpu-preset-result');
2930
assert.include(results[0], 'slowdown');
30-
assert.include(results[1], 'slowdown');
31+
assert.match(results[1] ?? '', /slowdown|not powerful enough/);
3132
});
3233
});

0 commit comments

Comments
 (0)