Fix TypeScript issue in x-pack/test (#167488)

Follow up to #167343

See:
https://github.com/elastic/kibana/pull/167343#discussion_r1339688385
This commit is contained in:
Thomas Watson 2023-09-28 13:17:39 +02:00 committed by GitHub
parent d79a38363a
commit b90b2114a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ import {
X_ELASTIC_INTERNAL_ORIGIN_REQUEST,
} from '@kbn/core-http-common';
import expect from '@kbn/expect';
import type { GetAgentsResponse } from '@kbn/fleet-plugin/common';
import { FtrProviderContext } from '../../api_integration/ftr_provider_context';
import { skipIfNoDockerRegistry, generateAgent } from '../helpers';
import { setupFleetAndAgents } from './agents/services';
@ -130,7 +131,7 @@ export default function (providerContext: FtrProviderContext) {
expectedAgentCount: number,
attempts: number,
_attemptsMade = 0
): Promise<any> {
): Promise<GetAgentsResponse> {
const { body: apiResponse } = await supertest
.get(`/api/fleet/agents?showInactive=true`)
.set('kbn-xsrf', 'xxxx')