Skip to content

Commit 6c01439

Browse files
committed
fix(tests): fire fork mode commands on first iteration
With the trigger at 100, no single forked worker is guaranteed to reach it when runs are split across 3 processes.
1 parent e366ae6 commit 6c01439

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/bug-detectors/general/fuzz.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,22 @@ module.exports.CallOriginalFriendlyAsyncCallingSync = async function (data) {
9292
};
9393

9494
module.exports.ForkModeCallOriginalEvil = makeFuzzFunctionWithInput(
95-
100,
95+
1,
9696
evilCommand,
9797
);
9898

9999
module.exports.ForkModeCallOriginalFriendly = makeFuzzFunctionWithInput(
100-
100,
100+
1,
101101
friendlyCommand,
102102
);
103103

104104
module.exports.ForkModeCallOriginalEvilAsync = makeAsyncFuzzFunctionWithInput(
105-
100,
105+
1,
106106
evilCommand,
107107
);
108108

109109
module.exports.ForkModeCallOriginalFriendlyAsync =
110-
makeAsyncFuzzFunctionWithInput(100, friendlyCommand);
110+
makeAsyncFuzzFunctionWithInput(1, friendlyCommand);
111111

112112
module.exports.DisableAllBugDetectors = makeFnCalledOnce(async (data) => {
113113
// Command Injection : try to make an empty file named "jaz_zer" (our evil string)

0 commit comments

Comments
 (0)