Skip to content

Commit

Permalink
lower fake error threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Feb 13, 2024
1 parent 1e8eaa4 commit fce6818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/sandbox/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}}')) {
Expand Down Expand Up @@ -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 });
Expand All @@ -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 });
Expand Down

0 comments on commit fce6818

Please sign in to comment.