Skip to content

Commit

Permalink
Merge pull request #779 from TNG/fix/proxy-test-adaption-2
Browse files Browse the repository at this point in the history
Increase growth cutoff for ProxyClassPerformanceTest
  • Loading branch information
fudler authored Dec 10, 2021
2 parents a0c7880 + a650fbd commit 6cb6c53
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public class ProxyClassPerformanceTest {

private static final int NUMBER_OF_RUNS = 10000;
private static final int PROBE_INTERVAL = 100;
private static final double GROWTH_EXPECTED_IF_LAST_REPORTED_GROWTH_IS_POSITIVE = 0.011;


@Test
public void test_creation_of_proxy_classes() {
Expand All @@ -34,7 +36,7 @@ public void test_creation_of_proxy_classes() {
assertThat(averageConsumptionChange)
.as("There is no net increase of memory consumption "
+ "for the continued creation and discarding of proxy classes.")
.isLessThanOrEqualTo(0);
.isLessThanOrEqualTo(GROWTH_EXPECTED_IF_LAST_REPORTED_GROWTH_IS_POSITIVE);
}

private List<Long> calculateChangeInMemoryConsumption(List<Long> record) {
Expand Down

0 comments on commit 6cb6c53

Please sign in to comment.