Skip to content

Commit 1b02c7e

Browse files
Skip performance tests on Mac CI for now, since they're flaky there (#3183)
1 parent a8b1998 commit 1b02c7e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

packages/cursorless-vscode-e2e/src/suite/performance.vscode.test.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ suite(`Performance ${thresholds.join("/")} ms`, async function () {
2929
// Before each test, print the test title. This is done so we have the test
3030
// title before the test run time / duration.
3131
this.beforeEach(function () {
32+
// FIXME: This test is flaky on Mac CI, so we skip it there for now
33+
if (isCI() && isMac()) {
34+
this.skip();
35+
return;
36+
}
37+
3238
const title = this.currentTest!.title;
3339
if (title !== previousTitle) {
3440
console.log(` ${title}`);
@@ -261,13 +267,8 @@ function generateTestData(n: number): string {
261267

262268
function calculateMultiplier() {
263269
// The GitHub test runner is generally slower than running tests locally, so
264-
// we increase the thresholds in CI. We do this for all platforms, but
265-
// especially for macOS since the GitHub test runner for macOS is particularly
266-
// slow.
270+
// we increase the thresholds in CI.
267271
if (isCI()) {
268-
if (isMac()) {
269-
return 3;
270-
}
271272
return 2;
272273
}
273274
return 1;

0 commit comments

Comments
 (0)