From 1825dca562714d93da67859037ad4b99ed27a6df Mon Sep 17 00:00:00 2001 From: "Christiane (Tina) Heiligers" Date: Wed, 23 Nov 2022 16:15:07 -0700 Subject: [PATCH] Updates missed import --- .../fleet_usage_telemetry.test.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/fleet/server/integration_tests/fleet_usage_telemetry.test.ts b/x-pack/plugins/fleet/server/integration_tests/fleet_usage_telemetry.test.ts index 5197b34fc89fe..3f85a8533f4f4 100644 --- a/x-pack/plugins/fleet/server/integration_tests/fleet_usage_telemetry.test.ts +++ b/x-pack/plugins/fleet/server/integration_tests/fleet_usage_telemetry.test.ts @@ -7,7 +7,12 @@ import path from 'path'; -import * as kbnTestServer from '@kbn/core/test_helpers/kbn_server'; +import { + type TestElasticsearchUtils, + type TestKibanaUtils, + createTestServers, + createRootWithCorePlugins, +} from '@kbn/core-test-helpers-kbn-server'; import { fetchFleetUsage } from '../collectors/register'; @@ -17,12 +22,12 @@ const logFilePath = path.join(__dirname, 'logs.log'); describe('fleet usage telemetry', () => { let core: any; - let esServer: kbnTestServer.TestElasticsearchUtils; - let kbnServer: kbnTestServer.TestKibanaUtils; + let esServer: TestElasticsearchUtils; + let kbnServer: TestKibanaUtils; const registryUrl = 'http://localhost'; const startServers = async () => { - const { startES } = kbnTestServer.createTestServers({ + const { startES } = createTestServers({ adjustTimeout: (t) => jest.setTimeout(t), settings: { es: { @@ -34,7 +39,7 @@ describe('fleet usage telemetry', () => { esServer = await startES(); const startKibana = async () => { - const root = kbnTestServer.createRootWithCorePlugins( + const root = createRootWithCorePlugins( { xpack: { fleet: {