From 4cc5c49ea26849bdc7ac3f6174b2742b357d2d80 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Fri, 29 Dec 2017 15:42:54 +0100 Subject: [PATCH] Fix ITs --- it/src/test/java/com/sonarsource/scanner/it/JavaTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/it/src/test/java/com/sonarsource/scanner/it/JavaTest.java b/it/src/test/java/com/sonarsource/scanner/it/JavaTest.java index dd7b296..2c54d80 100644 --- a/it/src/test/java/com/sonarsource/scanner/it/JavaTest.java +++ b/it/src/test/java/com/sonarsource/scanner/it/JavaTest.java @@ -291,10 +291,11 @@ public class JavaTest extends ScannerTestCase { BuildResult executeBuild = orchestrator.executeBuildQuietly(build); assertThat(executeBuild.getStatus()).isNotEqualTo(0); String logs = executeBuild.getLogs(); - assertThat(logs).satisfies(new Condition() { + assertThat(logs).satisfies(new Condition("Contain error message about OOM") { @Override public boolean matches(String value) { - return value.contains("java.lang.OutOfMemoryError") || value.contains("GC overhead limit exceeded"); + return value.contains("java.lang.OutOfMemoryError") + || value.contains("GC overhead limit exceeded") || value.contains("Java heap space"); } }); } -- 2.39.5