]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Fix ITs
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Fri, 29 Dec 2017 14:42:54 +0000 (15:42 +0100)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Fri, 29 Dec 2017 15:24:47 +0000 (16:24 +0100)
it/src/test/java/com/sonarsource/scanner/it/JavaTest.java

index dd7b296b2481cc85640259e3737ed8c0525ffa98..2c54d8083b91a999158687f53c82ee3b68137281 100644 (file)
@@ -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<String>() {
+    assertThat(logs).satisfies(new Condition<String>("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");
       }
     });
   }