Adapt to changes in gerrit core With change I3be0af5c we removed the experiment that stored submit requirements in NoteDb when the change is merged/abandonned. Adapting the test in CodeOwnerHasOperandsIT. Change-Id: I8d78a13514341467e66998aef43b7d1c45321205
diff --git a/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/CodeOwnerHasOperandsIT.java b/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/CodeOwnerHasOperandsIT.java index 1610647..722eafa 100644 --- a/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/CodeOwnerHasOperandsIT.java +++ b/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/CodeOwnerHasOperandsIT.java
@@ -144,9 +144,8 @@ gApi.changes().id(changeId).current().submit(); changeInfo = gApi.changes().id(changeId).get(ListChangesOption.SUBMIT_REQUIREMENTS); // When the change is merged, submit requirement results are persisted in NoteDb. Later lookups - // return the persisted snapshot. Currently writing to NoteDb is disabled. - // TODO(ghareeb): update this check when we enable writing to NoteDb again. - assertNonExistentSubmitRequirement(changeInfo.submitRequirements, "Code-Owner-Approval"); + // return the persisted snapshot. + assertSubmitRequirement(changeInfo.submitRequirements, "Code-Owner-Approval", SATISFIED); } @Test