Merge "Add missing local JGit fetch test assertion" into stable-3.4
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/JGitFetchIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/JGitFetchIT.java
index e5cd33d..77cf80d 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/JGitFetchIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/JGitFetchIT.java
@@ -106,10 +106,11 @@
List<RefUpdateState> fetchCreated = fetchAllRefs(localRepo);
assertThat(fetchCreated.toString())
.contains(new RefUpdateState(branchRef, RefUpdate.Result.NEW).toString());
+ assertThat(getRef(localRepo, branchRef)).isNotNull();
+
assertThat(fetchCreated.toString())
.contains(new RefUpdateState(tagRef, RefUpdate.Result.NEW).toString());
-
- assertThat(getRef(localRepo, branchRef)).isNotNull();
+ assertThat(getRef(localRepo, tagRef)).isNotNull();
PushResult deleteBranchResult = deleteRef(testRepo, branchRef);
assertOkStatus(deleteBranchResult, branchRef);