Add missing local JGit fetch test assertion
Add local tag creation assertion for JGit fetch test for symmetry with
branch fetch.
Bug: Issue 40015295
Change-Id: I7da4a4687f25f03f7b8396a1bd515c7281cab44a
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);