Skip to content

Commit

Permalink
[kbn/test] switch to @elastic/elasticsearch (#95443) (#95468)
Browse files Browse the repository at this point in the history
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 25, 2021
1 parent b43ad04 commit 54ffc0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kbn-test/src/legacy_es/legacy_es_test_cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { get, toPath } from 'lodash';
import { Cluster } from '@kbn/es';
import { CI_PARALLEL_PROCESS_PREFIX } from '../ci_parallel_process_prefix';
import { esTestConfig } from './es_test_config';
import { Client } from '@elastic/elasticsearch';

import { KIBANA_ROOT } from '../';
import * as legacyElasticsearch from 'elasticsearch';
const path = require('path');
const del = require('del');

Expand Down Expand Up @@ -103,8 +103,8 @@ export function createLegacyEsTestCluster(options = {}) {
* Returns an ES Client to the configured cluster
*/
getClient() {
return new legacyElasticsearch.Client({
host: this.getUrl(),
return new Client({
node: this.getUrl(),
});
}

Expand Down

0 comments on commit 54ffc0f

Please sign in to comment.