From fce6818d61b1e21d9235625e19def339c2ae04fa Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 13 Feb 2024 09:49:36 +0100 Subject: [PATCH] lower fake error threshold --- scripts/sandbox/generate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/sandbox/generate.ts b/scripts/sandbox/generate.ts index dd77b4ee8574..91a4fd2fccd5 100755 --- a/scripts/sandbox/generate.ts +++ b/scripts/sandbox/generate.ts @@ -189,7 +189,7 @@ const runGenerators = async ( // where as others are very picky about what directories can be called. So we need to // handle different modes of operation. try { - if (Math.random() < 0.6) { + if (Math.random() < 0.2) { throw new Error('Blip Bloop random error when executing before-script'); } if (script.includes('{{beforeDir}}')) { @@ -227,7 +227,7 @@ const runGenerators = async ( await remove(join(beforeDir, '.git')); try { - if (Math.random() < 0.6) { + if (Math.random() < 0.2) { throw new Error('Blip Bloop random error when init storybook'); } await addStorybook({ baseDir, localRegistry, flags, debug, env }); @@ -244,7 +244,7 @@ const runGenerators = async ( cause: error, }); } - if (Math.random() < 0.6) { + if (Math.random() < 0.2) { throw new Error('Blip Bloop random error anywhere'); } await addDocumentation(baseDir, { name, dirName });