Fix ApplyObjectIT.shouldApplyRefMetaObject test for apply object Use the correct commit SHA1 when simulating the apply-object REST-API call on '/meta' refs. Change-Id: I1a17b9b552541295ea9e185a091b11f373729930
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/fetch/ApplyObjectIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/fetch/ApplyObjectIT.java index b24d1d7..0f063a4 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/fetch/ApplyObjectIT.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/fetch/ApplyObjectIT.java
@@ -78,8 +78,7 @@ String refName = RefNames.changeMetaRef(pushResult.getChange().getId()); Optional<RevisionData> revisionData = - reader.read( - Project.nameKey(testRepoProjectName), pushResult.getCommit().toObjectId(), refName); + reader.read(Project.nameKey(testRepoProjectName), refName); RefSpec refSpec = new RefSpec(refName); objectUnderTest.apply(project, refSpec, revisionData.get());