Increase elasticsearch client timeout from 30s to 5m.

This commit is contained in:
LeeDr 2015-12-01 09:00:07 -06:00
parent 32cf7762f2
commit c4b60c9c88
4 changed files with 11 additions and 10 deletions

View file

@ -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
});
}

View file

@ -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) {

View file

@ -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');
});

View file

@ -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) {