mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
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:
parent
d79a38363a
commit
b90b2114a0
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue