test: remove unnecessary verify check

Original commit: elastic/x-pack-elasticsearch@f748c0a565
This commit is contained in:
jaymode 2016-09-06 08:36:04 -04:00
parent 1e6a924e74
commit cd9add5350
1 changed files with 1 additions and 1 deletions

View File

@ -145,6 +145,7 @@ public class TransportGetUsersActionTests extends ESTestCase {
mock(ActionFilters.class), mock(IndexNameExpressionResolver.class), usersStore, mock(TransportService.class),
reservedRealm);
logger.error("names {}", names);
GetUsersRequest request = new GetUsersRequest();
request.usernames(names.toArray(new String[names.size()]));
@ -165,7 +166,6 @@ public class TransportGetUsersActionTests extends ESTestCase {
assertThat(throwableRef.get(), is(nullValue()));
assertThat(responseRef.get(), is(notNullValue()));
assertThat(responseRef.get().users(), arrayContaining(reservedUsers.toArray(new User[reservedUsers.size()])));
verify(usersStore, times(1 + names.size())).started();
}
public void testGetAllUsers() {