aboutsummaryrefslogtreecommitdiffstats
path: root/it/src
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2017-12-29 15:42:54 +0100
committerDuarte Meneses <duarte.meneses@sonarsource.com>2017-12-29 16:24:47 +0100
commit4cc5c49ea26849bdc7ac3f6174b2742b357d2d80 (patch)
tree21a3d9e7c6f323633a5c1781438ce00e938c0c0d /it/src
parent01577300518f84fd5a36a9b57c7cbe44df805a96 (diff)
downloadsonar-scanner-cli-4cc5c49ea26849bdc7ac3f6174b2742b357d2d80.tar.gz
sonar-scanner-cli-4cc5c49ea26849bdc7ac3f6174b2742b357d2d80.zip
Fix ITs
Diffstat (limited to 'it/src')
-rw-r--r--it/src/test/java/com/sonarsource/scanner/it/JavaTest.java5
1 files 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<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");
}
});
}