Skip to content

Commit 4e83759

Browse files
Nit fix test randomInt bound
Relates 2b789fa
1 parent 2b789fa commit 4e83759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/RBACEngineTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public void testCheckRestrictedIndexPatternPermission() throws Exception {
550550
Authentication authentication = mock(Authentication.class);
551551
when(authentication.getUser()).thenReturn(user);
552552
final String patternPrefix = RestrictedIndicesNames.ASYNC_SEARCH_PREFIX.substring(0,
553-
randomIntBetween(1, RestrictedIndicesNames.ASYNC_SEARCH_PREFIX.length() - 2));
553+
randomIntBetween(2, RestrictedIndicesNames.ASYNC_SEARCH_PREFIX.length() - 2));
554554
Role role = Role.builder("role")
555555
.add(FieldPermissions.DEFAULT, null, IndexPrivilege.INDEX, false, patternPrefix + "*")
556556
.build();

0 commit comments

Comments
 (0)