From f138723c680ec2e0507121b0eb79121f12c24a05 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Thu, 22 Dec 2022 10:11:53 -0800 Subject: [PATCH] chore(cli): increase chance of running post-test cleanup --- packages/@sanity/cli/test/shared/globalTeardown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/cli/test/shared/globalTeardown.ts b/packages/@sanity/cli/test/shared/globalTeardown.ts index 1d09a9b63de..29d08e83386 100644 --- a/packages/@sanity/cli/test/shared/globalTeardown.ts +++ b/packages/@sanity/cli/test/shared/globalTeardown.ts @@ -26,7 +26,7 @@ export default async function globalTeardown(): Promise { // Very hacky, but good enough for now: // Force a cleanup of dangling entities left over from previous test runs every once in a while - if (Math.random() < 0.3) { + if (Math.random() < 0.7) { await cleanupDangling() } }