diff --git a/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts b/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts index cb7f5a000cefb1..ea807beb83cead 100644 --- a/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts +++ b/src/core/server/saved_objects/migrationsv2/integration_tests/migration_7.7.2_xpack_100k.test.ts @@ -6,9 +6,8 @@ * Side Public License, v 1. */ -import Path from 'path'; -import Fs from 'fs'; -import Util from 'util'; +import path from 'path'; +import { unlink } from 'fs/promises'; import { REPO_ROOT } from '@kbn/dev-utils'; import { Env } from '@kbn/config'; import { getEnvOptions } from '@kbn/config/target/mocks'; @@ -18,16 +17,14 @@ import { InternalCoreStart } from '../../../internal_types'; import { Root } from '../../../root'; const kibanaVersion = Env.createDefault(REPO_ROOT, getEnvOptions()).packageInfo.version; -const logFilePath = Path.join(__dirname, 'migration_test_kibana.log'); +const logFilePath = path.join(__dirname, 'migration_test_kibana.log'); -const asyncUnlink = Util.promisify(Fs.unlink); async function removeLogFile() { // ignore errors if it doesn't exist - await asyncUnlink(logFilePath).catch(() => void 0); + await unlink(logFilePath).catch(() => void 0); } -// FAILING on 7.13: https://github.com/elastic/kibana/issues/96895 -describe.skip('migration from 7.7.2-xpack with 100k objects', () => { +describe('migration from 7.7.2-xpack with 100k objects', () => { let esServer: kbnTestServer.TestElasticsearchUtils; let root: Root; let coreStart: InternalCoreStart; @@ -64,12 +61,9 @@ describe.skip('migration from 7.7.2-xpack with 100k objects', () => { }, }, }, - loggers: [ - { - name: 'root', - appenders: ['file'], - }, - ], + root: { + appenders: ['default', 'file'], + }, }, }, { @@ -106,7 +100,7 @@ describe.skip('migration from 7.7.2-xpack with 100k objects', () => { await removeLogFile(); await startServers({ oss: false, - dataArchive: Path.join(__dirname, 'archives', '7.7.2_xpack_100k_obj.zip'), + dataArchive: path.join(__dirname, 'archives', '7.7.2_xpack_100k_obj.zip'), }); });