ReplicationIT: Remove unused variables in tests
Change-Id: Ic652fd71748bf7899377f5e4b3ef5e3f9d7d819a
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java
index 851088f..9b83b62 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java
@@ -47,9 +47,7 @@
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.storage.file.FileBasedConfig;
import org.eclipse.jgit.util.FS;
-import org.junit.Rule;
import org.junit.Test;
-import org.junit.rules.ExpectedException;
@UseLocalDisk
@TestPlugin(
@@ -240,8 +238,6 @@
}
}
- @Rule public ExpectedException exception = ExpectedException.none();
-
@Test
public void shouldNotDrainTheQueueWhenReloading() throws Exception {
// Setup repo to replicate
@@ -259,7 +255,7 @@
Result pushResult = createChange();
reloadConfig();
- RevCommit sourceCommit = pushResult.getCommit();
+ pushResult.getCommit();
String sourceRef = pushResult.getPatchSet().getRefName();
exception.expect(InterruptedException.class);