commit | eb49c4034ce29a003665ea72286c9eda94dc948a | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Mon Jul 11 23:50:29 2022 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Mon Jul 11 23:51:44 2022 +0100 |
tree | 7102a00d42af101e9ecec310f33c624f12c2c1e1 | |
parent | 6091b4507563ddac209b23e309bf2e80cdd67743 [diff] |
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());