From e3b355aeda7f306c79c0e2ce77c68aca35bc7acc Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Thu, 25 Jun 2020 17:09:27 -0700 Subject: [PATCH] Increase timeout - it was timing out way too quickly even on localhost, so I'm mildly concerned it will be even longer on prod servers --- x-pack/plugins/enterprise_search/server/index.ts | 2 +- .../enterprise_search/server/routes/__mocks__/config.mock.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/server/index.ts b/x-pack/plugins/enterprise_search/server/index.ts index 53b2da10c6d41..7dc8452d0fc73 100644 --- a/x-pack/plugins/enterprise_search/server/index.ts +++ b/x-pack/plugins/enterprise_search/server/index.ts @@ -15,7 +15,7 @@ export const plugin = (initializerContext: PluginInitializerContext) => { export const configSchema = schema.object({ host: schema.maybe(schema.string()), enabled: schema.boolean({ defaultValue: true }), - accessCheckTimeout: schema.number({ defaultValue: 200 }), + accessCheckTimeout: schema.number({ defaultValue: 600 }), }); type ConfigType = TypeOf; diff --git a/x-pack/plugins/enterprise_search/server/routes/__mocks__/config.mock.ts b/x-pack/plugins/enterprise_search/server/routes/__mocks__/config.mock.ts index e4d560a2be63c..4c5b48cd3bc7b 100644 --- a/x-pack/plugins/enterprise_search/server/routes/__mocks__/config.mock.ts +++ b/x-pack/plugins/enterprise_search/server/routes/__mocks__/config.mock.ts @@ -7,5 +7,5 @@ export const mockConfig = { enabled: true, host: 'http://localhost:3002', - accessCheckTimeout: 200, + accessCheckTimeout: 600, };