Fix testBlockRule_ParentBlocksChild() from RefControlTest
The assert was on force update which is not granted in this test. Now it asserts on canUpdate() instead of canForceUpdate(). Change-Id: Ie8f0c90898ced045386cff044022da172b9f0f78 Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
This commit is contained in:

committed by
David Pursehouse

parent
a83c222362
commit
fa6756cf1d
@@ -301,7 +301,7 @@ public class RefControlTest {
|
|||||||
grant(util.getParentConfig(), PUSH, ANONYMOUS_USERS, "refs/tags/*").setBlock();
|
grant(util.getParentConfig(), PUSH, ANONYMOUS_USERS, "refs/tags/*").setBlock();
|
||||||
|
|
||||||
ProjectControl u = util.user(local, DEVS);
|
ProjectControl u = util.user(local, DEVS);
|
||||||
assertFalse("u can't force update tag", u.controlForRef("refs/tags/V10").canForceUpdate());
|
assertFalse("u can't update tag", u.controlForRef("refs/tags/V10").canUpdate());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user