Skip to content

Commit dd19be1

Browse files
committed
set proper length expected
1 parent f1d446d commit dd19be1

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/action/service/TransportGetServiceAccountActionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void testDoExecute() {
4646
final PlainActionFuture<GetServiceAccountResponse> future1 = new PlainActionFuture<>();
4747
transportGetServiceAccountAction.doExecute(mock(Task.class), request1, future1);
4848
final GetServiceAccountResponse getServiceAccountResponse1 = future1.actionGet();
49-
assertThat(getServiceAccountResponse1.getServiceAccountInfos().length, equalTo(5));
49+
assertThat(getServiceAccountResponse1.getServiceAccountInfos().length, equalTo(4));
5050
assertThat(
5151
Arrays.stream(getServiceAccountResponse1.getServiceAccountInfos()).map(ServiceAccountInfo::getPrincipal).toList(),
5252
containsInAnyOrder("elastic/auto-ops", "elastic/fleet-server", "elastic/fleet-server-remote", "elastic/kibana")

0 commit comments

Comments
 (0)