Changing more usages of kbnTestServer.createServer
This commit is contained in:
parent
0eeca7d1b4
commit
464f73abb2
|
@ -1,7 +1,7 @@
|
|||
import { createServer } from '../../../../test_utils/kbn_server';
|
||||
import { createServerWithCorePlugins } from '../../../../test_utils/kbn_server';
|
||||
|
||||
(async function run() {
|
||||
const server = createServer(JSON.parse(process.env.CREATE_SERVER_OPTS));
|
||||
const server = createServerWithCorePlugins(JSON.parse(process.env.CREATE_SERVER_OPTS));
|
||||
|
||||
// We just need the server to run through startup so that it will
|
||||
// log the deprecation messages. Once it has started up we close it
|
||||
|
|
|
@ -3,14 +3,14 @@ import sinon from 'sinon';
|
|||
|
||||
import { FieldFormat } from '../field_format';
|
||||
import * as FieldFormatsServiceNS from '../field_formats_service';
|
||||
import { createServer } from '../../../test_utils/kbn_server';
|
||||
import { createServerWithCorePlugins } from '../../../test_utils/kbn_server';
|
||||
|
||||
describe('server.registerFieldFormat(createFormat)', () => {
|
||||
const sandbox = sinon.createSandbox();
|
||||
|
||||
let server;
|
||||
beforeEach(async () => {
|
||||
const kbnServer = createServer();
|
||||
const kbnServer = createServerWithCorePlugins();
|
||||
await kbnServer.ready();
|
||||
server = kbnServer.server;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue