Skip to content

Commit f59b123

Browse files
committed
Try increasing the limit
1 parent 2fe206c commit f59b123

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/test/java/org/testcontainers/containers/GenericContainerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public void shouldReportOOMAfterWait() {
2626
.withStartupCheckStrategy(new NoopStartupCheckStrategy())
2727
.waitingFor(new WaitForExitedState(ContainerState::getOOMKilled))
2828
.withCreateContainerCmdModifier(it -> {
29-
it.getHostConfig().withMemory(4 * FileUtils.ONE_MB);
29+
it.getHostConfig().withMemory(32 * FileUtils.ONE_MB);
3030
})
31-
.withCommand("sh", "-c", "A='0123456789'; for i in $(seq 0 32); do A=$A$A; sleep 0.01; done; sleep 10m")
31+
.withCommand("sh", "-c", "A='0123456789'; for i in $(seq 0 32); do A=$A$A; done; sleep 10m")
3232
) {
3333
assertThatThrownBy(container::start)
3434
.hasStackTraceContaining("Container crashed with out-of-memory");

0 commit comments

Comments
 (0)