Skip to content

Commit 3bd2663

Browse files
committed
chore: update stress test expectations
Some tests have too strict expectations on mutator output and are way off from their true probabilities, and simply running the stress test for more iterations, or with a different seed will result in failed tests due to variance.
1 parent 733b16a commit 3bd2663

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/code_intelligence/jazzer/mutation/mutator/StressTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -837,15 +837,15 @@ void singleParam(int parameter) {}
837837
"[Nullable<[Integer, Boolean] -> SimpleRecord>, Nullable<[Integer, Boolean] ->"
838838
+ " SimpleRecord>] -> RepeatedRecord",
839839
true,
840-
distinctElementsRatio(0.49),
840+
distinctElementsRatio(0.45),
841841
manyDistinctElements()),
842842
arguments(
843843
new TypeHolder<@NotNull LinkedListNode>() {}.annotatedType(),
844844
"[Nullable<[Integer, Boolean] -> SimpleRecord>, Nullable<RecursionBreaking((cycle) ->"
845845
+ " LinkedListNode)>] -> LinkedListNode",
846846
false,
847847
// Low due to recursion breaking initializing nested records to null.
848-
distinctElementsRatio(0.23),
848+
distinctElementsRatio(0.22),
849849
manyDistinctElements()),
850850
arguments(
851851
new TypeHolder<@NotNull SetterBasedBeanWithParent>() {}.annotatedType(),
@@ -858,7 +858,7 @@ void singleParam(int parameter) {}
858858
"[Nullable<RecursionBreaking((cycle) -> LinkedListBean)>, Integer] -> LinkedListBean",
859859
false,
860860
// Low due to recursion breaking initializing nested structs to null.
861-
distinctElementsRatio(0.22),
861+
distinctElementsRatio(0.21),
862862
manyDistinctElements()),
863863
arguments(
864864
new TypeHolder<@NotNull ImmutableBuilder>() {}.annotatedType(),

0 commit comments

Comments
 (0)