Skip to content

Commit

Permalink
#3426 2G required
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 20, 2024
1 parent 393b6a7 commit 8c7b58b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eo-runtime/src/test/java/org/eolang/MainTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ final class MainTest {

@BeforeAll
static void checkHeapSize() {
final int gbs = 2;
MatcherAssert.assertThat(
"The maximum heap size is not big enough, some tests may fail, try to set JAVA_OPTS environment variable to '-Xmx8g'",
String.format(
"The maximum heap size is not big enough, some tests may fail, try to set JAVA_OPTS environment variable to '-Xmx%dg'",
gbs
),
Runtime.getRuntime().maxMemory(),
Matchers.greaterThanOrEqualTo(8L * 1024 * 1024 * 1024)
Matchers.greaterThanOrEqualTo(1024L * 1024 * 1024 * gbs)
);
}

Expand Down

0 comments on commit 8c7b58b

Please sign in to comment.