ChangeNotificationsIT: Don't trigger review after setting ready
The comment on this line is inaccurate: PolyGerrit does not set a change ready by calling first the Set Ready endpoint followed by the Post Review endpoint. In fact, it just does a single Post Review with ready=true in the ReviewInput. This case was already handled by ChangeNotificationsIT#commentOnWipChangeAndStartReview. In fact, the extra review method should send no email at all, since there is no message. Thus it was just a no-op and a distraction in these tests. Change-Id: I47d8d486145bd01cda2722ec388899bb3e5d1691
This commit is contained in:
@@ -2294,8 +2294,6 @@ public class ChangeNotificationsIT extends AbstractNotificationTest {
|
||||
private void startReview(StagedChange sc) throws Exception {
|
||||
requestScopeOperations.setApiUser(sc.owner.getId());
|
||||
gApi.changes().id(sc.changeId).setReadyForReview();
|
||||
// PolyGerrit current immediately follows up with a review.
|
||||
gApi.changes().id(sc.changeId).revision("current").review(ReviewInput.noScore());
|
||||
}
|
||||
|
||||
private void setWorkInProgressByDefault(Project.NameKey p, InheritableBoolean v)
|
||||
|
||||
Reference in New Issue
Block a user