Skip to content

Commit

Permalink
Loose TestRepositoryCache#test900HeapUsage
Browse files Browse the repository at this point in the history
The safety margin was increased.
  • Loading branch information
mederly committed Mar 29, 2022
1 parent 45a656a commit 6c96e9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ public void test900HeapUsage() throws Exception {
int count = 400;

// 50 is the default "step" in paged iterative search, so we can expect we always have 50 objects in memory
// And "times 3" is the safety margin. It might or might not be sufficient, as System.gc() is not guaranteed to
// And "times 4" is the safety margin. It might or might not be sufficient, as System.gc() is not guaranteed to
// really execute the garbage collection (only suggests JVM to do it).
long tolerance = (50 * size) * 3;
long tolerance = (50 * size) * 4;

showMemory("Initial");
dumpHeap("initial");
Expand Down

0 comments on commit 6c96e9f

Please sign in to comment.