mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Increase elasticsearch client timeout from 30s to 5m.
This commit is contained in:
parent
32cf7762f2
commit
c4b60c9c88
4 changed files with 11 additions and 10 deletions
4
test/fixtures/scenarioManager.js
vendored
4
test/fixtures/scenarioManager.js
vendored
|
@ -6,8 +6,10 @@ var config = require('./config').scenarios;
|
|||
function ScenarioManager(server) {
|
||||
if (!server) throw new Error('No server defined');
|
||||
|
||||
// NOTE: some large sets of test data can take several minutes to load
|
||||
this.client = new elasticsearch.Client({
|
||||
host: server
|
||||
host: server,
|
||||
requestTimeout: 3000000
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ define(function (require) {
|
|||
'Area chart', 'Data table', 'Line chart', 'Markdown widget',
|
||||
'Metric', 'Pie chart', 'Tile map', 'Vertical bar chart'
|
||||
];
|
||||
|
||||
// find all the chart types and make sure there all there
|
||||
return visualizePage.getChartTypes()
|
||||
.then(function testChartTypes(chartTypes) {
|
||||
|
|
|
@ -25,6 +25,7 @@ define(function (require) {
|
|||
var headerPage;
|
||||
var settingsPage;
|
||||
var scenarioManager = new ScenarioManager(url.format(config.servers.elasticsearch));
|
||||
this.timeout = 120005;
|
||||
|
||||
// on setup, we create an settingsPage instance
|
||||
// that we will use for all the tests
|
||||
|
@ -36,13 +37,11 @@ define(function (require) {
|
|||
});
|
||||
|
||||
bdd.before(function () {
|
||||
common.debug('running bdd.before');
|
||||
this.timeout = 120000;
|
||||
return remote.setWindowSize(1200,800)
|
||||
// load a minimal set of makelogs data
|
||||
.then(function loadIfEmptyMakelogs() {
|
||||
return scenarioManager.loadIfEmpty('logstashFunctional');
|
||||
});
|
||||
var self = this;
|
||||
remote.setWindowSize(1200,800);
|
||||
// load a set of makelogs data
|
||||
common.debug('loadIfEmpty logstashFunctional ' + self.timeout);
|
||||
return scenarioManager.loadIfEmpty('logstashFunctional');
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
define(function (require) {
|
||||
|
||||
var config = require('intern').config;
|
||||
var registerSuite = require('intern!object');
|
||||
var Common = require('./Common');
|
||||
|
||||
var defaultTimeout = 5000;
|
||||
var defaultTimeout = config.timeouts.default;
|
||||
var common;
|
||||
|
||||
function VisualizePage(remote) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue