Adapt to enabling CheckReturnValue in gerrit core

Bug: Google b/312699566
Change-Id: Ia53c5dabb5a92dab04abf61c029d0d2e2ccb227d
Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java b/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java
index 5b17a56..7a69a66 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java
@@ -135,7 +135,7 @@
     PushOneCommit push =
         pushFactory.create(
             admin.newIdent(), testRepo, "Create webhooks", "webhooks.config", content);
-    push.to(REFS_CONFIG);
+    push.to(REFS_CONFIG).assertOkStatus();
   }
 
   static Map<String, RemoteInfo> asMap(String json) {