Skip to content

Commit 42b2e9a

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 974408e commit 42b2e9a

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
@@ -865,15 +865,15 @@ void singleParam(int parameter) {}
865865
"[Nullable<[Integer, Boolean] -> SimpleRecord>, Nullable<[Integer, Boolean] ->"
866866
+ " SimpleRecord>] -> RepeatedRecord",
867867
true,
868-
distinctElementsRatio(0.49),
868+
distinctElementsRatio(0.45),
869869
manyDistinctElements()),
870870
arguments(
871871
new TypeHolder<@NotNull LinkedListNode>() {}.annotatedType(),
872872
"[Nullable<[Integer, Boolean] -> SimpleRecord>, Nullable<RecursionBreaking((cycle) ->"
873873
+ " LinkedListNode)>] -> LinkedListNode",
874874
false,
875875
// Low due to recursion breaking initializing nested records to null.
876-
distinctElementsRatio(0.23),
876+
distinctElementsRatio(0.22),
877877
manyDistinctElements()),
878878
arguments(
879879
new TypeHolder<@NotNull SetterBasedBeanWithParent>() {}.annotatedType(),
@@ -886,7 +886,7 @@ void singleParam(int parameter) {}
886886
"[Nullable<RecursionBreaking((cycle) -> LinkedListBean)>, Integer] -> LinkedListBean",
887887
false,
888888
// Low due to recursion breaking initializing nested structs to null.
889-
distinctElementsRatio(0.22),
889+
distinctElementsRatio(0.21),
890890
manyDistinctElements()),
891891
arguments(
892892
new TypeHolder<@NotNull ImmutableBuilder>() {}.annotatedType(),

0 commit comments

Comments
 (0)