From f90efd8cf0509bb9af656cc040791324de9bbb8e Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 23 Apr 2018 12:53:47 +0900 Subject: [PATCH] ForcePushIT#deleteAllowedWithDeletePermission: Fix permission setting This test was added on stable-2.14 with change I4861871a3, but was broken during the merge to stable-2.15 with change Ic13c689e2, most likely due to a copy paste mistake while adapting the code to the changed signature of the grant method done in change I9070d23b2. Change-Id: Iac628cc93c3c2b2efe3c53e4eaf802870a3daa8f --- .../test/java/com/google/gerrit/acceptance/git/ForcePushIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/ForcePushIT.java b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/ForcePushIT.java index 752da69816..ffa4b6041f 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/ForcePushIT.java +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/git/ForcePushIT.java @@ -94,7 +94,7 @@ public class ForcePushIT extends AbstractDaemonTest { @Test public void deleteAllowedWithDeletePermission() throws Exception { - grant(project, "refs/*", Permission.PUSH, true); + grant(project, "refs/*", Permission.DELETE, true); assertDeleteRef(OK); }