From 0ad3bdba4efb8e36cfe133e9c0c1ac092a4f6313 Mon Sep 17 00:00:00 2001 From: Ahmad Bamieh Date: Thu, 17 Jun 2021 13:46:35 +0300 Subject: [PATCH] type check --- .../server/collectors/event_loop_delays/rollups/daily.ts | 7 +------ .../rollups/integration_tests/daily_rollups.test.ts | 8 +------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts b/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts index 4e2c58f6c9aa6..979d5f90499d2 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts @@ -8,12 +8,7 @@ import type { Logger } from '@kbn/logging'; import { ISavedObjectsRepository } from '../../../../../../core/server'; - -import { - EventLoopDelaysDaily, - deleteHistogramSavedObjects, - SAVED_OBJECTS_DAILY_TYPE, -} from '../saved_objects'; +import { deleteHistogramSavedObjects } from '../saved_objects'; /** * Deletes docs older than 3 days diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts b/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts index f86916add81de..310735ac23f58 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts @@ -6,11 +6,7 @@ * Side Public License, v 1. */ -import type { - ElasticsearchClient, - Logger, - ISavedObjectsRepository, -} from '../../../../../../../core/server'; +import type { Logger, ISavedObjectsRepository } from '../../../../../../../core/server'; import { createTestServers, TestElasticsearchUtils, @@ -55,7 +51,6 @@ const rawEventLoopDelaysDaily = [ describe('daily rollups integration test', () => { let root: TestKibanaUtils['root']; - let client: ElasticsearchClient; let internalRepository: ISavedObjectsRepository; let logger: Logger; @@ -69,7 +64,6 @@ describe('daily rollups integration test', () => { await root.setup(); const start = await root.start(); - client = start.elasticsearch.client.asInternalUser; logger = root.logger.get('test dailt rollups'); internalRepository = start.savedObjects.createInternalRepository();