diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-10-01 17:26:34 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-10-01 17:50:36 +0200 |
commit | 8cec954ad673e32bf46d2a3b9fa62bdb6d86b7c8 (patch) | |
tree | 0ef79668f8d4883dfa1e2df57dfbcb79ba2a2a18 /it | |
parent | 71b0c573da6b4b3d89060f508d9091d3a230a217 (diff) | |
download | sonar-scanner-cli-8cec954ad673e32bf46d2a3b9fa62bdb6d86b7c8.tar.gz sonar-scanner-cli-8cec954ad673e32bf46d2a3b9fa62bdb6d86b7c8.zip |
Change cache strategy
Diffstat (limited to 'it')
-rw-r--r-- | it/src/test/java/com/sonar/runner/it/CacheTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/it/src/test/java/com/sonar/runner/it/CacheTest.java b/it/src/test/java/com/sonar/runner/it/CacheTest.java index 0e99bf9..7e9c953 100644 --- a/it/src/test/java/com/sonar/runner/it/CacheTest.java +++ b/it/src/test/java/com/sonar/runner/it/CacheTest.java @@ -32,6 +32,8 @@ import org.junit.Test; import java.io.File; import java.io.IOException; +import static org.junit.Assert.fail; + import static org.assertj.core.api.Assertions.assertThat; public class CacheTest extends RunnerTestCase { @@ -83,8 +85,11 @@ public class CacheTest extends RunnerTestCase { build = createRunner("issues", true, "java-sample"); try { result = orchestrator.executeBuild(build); + fail("exception expected"); } catch (BuildFailureException e) { - assertThat(e.getResult().getLogs()).contains("and data is not cached"); + // this message is specific to the server_first cache strategy + assertThat(e.getResult().getLogs()).contains("can not be reached, trying cache"); + assertThat(e.getResult().getLogs()).contains("can not be reached and data is not cached"); } } |