Skip to content

Commit

Permalink
Increase container size for machine dependent heap docker tests (elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Apr 23, 2024
1 parent 4813129 commit 513dd27
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1011,12 +1011,11 @@ public void test140CgroupOsStatsAreAvailable() throws Exception {
* Check that when available system memory is constrained by Docker, the machine-dependant heap sizing
* logic sets the correct heap size, based on the container limits.
*/
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/104786")
public void test150MachineDependentHeap() throws Exception {
final List<String> xArgs = machineDependentHeapTest("942m", List.of());
final List<String> xArgs = machineDependentHeapTest("1536m", List.of());

// This is roughly 0.4 * 942
assertThat(xArgs, hasItems("-Xms376m", "-Xmx376m"));
// This is roughly 0.5 * 1536
assertThat(xArgs, hasItems("-Xms768m", "-Xmx768m"));
}

/**
Expand Down

0 comments on commit 513dd27

Please sign in to comment.