Skip to content

Commit 76e7650

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 87618da commit 76e7650

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
@@ -838,15 +838,15 @@ void singleParam(int parameter) {}
838838
"[Nullable<[Integer, Boolean] -> SimpleRecord>, Nullable<[Integer, Boolean] ->"
839839
+ " SimpleRecord>] -> RepeatedRecord",
840840
true,
841-
distinctElementsRatio(0.49),
841+
distinctElementsRatio(0.45),
842842
manyDistinctElements()),
843843
arguments(
844844
new TypeHolder<@NotNull LinkedListNode>() {}.annotatedType(),
845845
"[Nullable<[Integer, Boolean] -> SimpleRecord>, Nullable<RecursionBreaking((cycle) ->"
846846
+ " LinkedListNode)>] -> LinkedListNode",
847847
false,
848848
// Low due to recursion breaking initializing nested records to null.
849-
distinctElementsRatio(0.23),
849+
distinctElementsRatio(0.22),
850850
manyDistinctElements()),
851851
arguments(
852852
new TypeHolder<@NotNull SetterBasedBeanWithParent>() {}.annotatedType(),
@@ -859,7 +859,7 @@ void singleParam(int parameter) {}
859859
"[Nullable<RecursionBreaking((cycle) -> LinkedListBean)>, Integer] -> LinkedListBean",
860860
false,
861861
// Low due to recursion breaking initializing nested structs to null.
862-
distinctElementsRatio(0.22),
862+
distinctElementsRatio(0.21),
863863
manyDistinctElements()),
864864
arguments(
865865
new TypeHolder<@NotNull ImmutableBuilder>() {}.annotatedType(),

0 commit comments

Comments
 (0)