Assert return value when creating project in test
Change-Id: I6297d25e4ce700dc906cda43caa19fac418ec799
diff --git a/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheIT.java b/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheIT.java
index 36ce53c..6f53dea 100644
--- a/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheIT.java
+++ b/src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheIT.java
@@ -19,7 +19,6 @@
import com.google.common.cache.Cache;
import com.google.common.truth.Truth8;
import com.google.gerrit.acceptance.AbstractDaemonTest;
-import com.google.gerrit.acceptance.RestResponse;
import com.google.gerrit.acceptance.UseLocalDisk;
import com.google.gerrit.entities.Project;
import com.google.gerrit.extensions.api.accounts.AccountInput;
@@ -65,7 +64,7 @@
@Test
public void shouldCacheNewProject() throws Exception {
String newProjectName = name("newProject");
- RestResponse r = adminRestSession.put("/projects/" + newProjectName);
+ adminRestSession.put("/projects/" + newProjectName).assertCreated();
Truth8.assertThat(projectCache.get(Project.nameKey(newProjectName))).isPresent();
}