From 49b1cb4fb86ddca41297cc9303bdb54d3e10bb26 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 22 Mar 2017 14:49:28 -0700 Subject: [PATCH] [elasticsearch/healthCheck] fix tests --- src/core_plugins/elasticsearch/lib/__tests__/health_check.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core_plugins/elasticsearch/lib/__tests__/health_check.js b/src/core_plugins/elasticsearch/lib/__tests__/health_check.js index 016b22c164733..9bdde587f78e9 100644 --- a/src/core_plugins/elasticsearch/lib/__tests__/health_check.js +++ b/src/core_plugins/elasticsearch/lib/__tests__/health_check.js @@ -38,6 +38,7 @@ describe('plugins/elasticsearch', () => { cluster = { callWithInternalUser: sinon.stub() }; cluster.callWithInternalUser.withArgs('index', sinon.match.any).returns(Promise.resolve()); + cluster.callWithInternalUser.withArgs('mget', sinon.match.any).returns(Promise.resolve({ ok: true })); cluster.callWithInternalUser.withArgs('get', sinon.match.any).returns(Promise.resolve({ found: false })); cluster.callWithInternalUser.withArgs('search', sinon.match.any).returns(Promise.resolve({ hits: { hits: [] } })); cluster.callWithInternalUser.withArgs('nodes.info', sinon.match.any).returns(Promise.resolve({