change-merged: set correct newRev on submit by push

Bug: Issue 11083
Change-Id: I12acf29549c35c93219867348c3691a24415e28c
This commit is contained in:
Sven Selberg
2019-06-27 16:39:59 +02:00
committed by Marco Miller
parent 0f6f21c916
commit 77df787ce5
6 changed files with 39 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ package com.google.gerrit.acceptance;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.LinkedListMultimap;
@@ -109,7 +110,8 @@ public class EventRecorder {
return events;
}
private ImmutableList<ChangeMergedEvent> getChangeMergedEvents(
@VisibleForTesting
public ImmutableList<ChangeMergedEvent> getChangeMergedEvents(
String project, String branch, int expectedSize) {
String key = refEventKey(ChangeMergedEvent.TYPE, project, branch);
if (expectedSize == 0) {