Add a defaultTryTimeout config parameter and use it for the try method.
This commit is contained in:
parent
8f12fbf8fd
commit
107de9d539
|
@ -20,6 +20,7 @@ define(function (require) {
|
|||
excludeInstrumentation: /.*/,
|
||||
|
||||
defaultTimeout: 90000,
|
||||
defaultTryTimeout: 40000, // tryForTime could include multiple 'find timeouts'
|
||||
defaultFindTimeout: 10000 // this is how long we try to find elements on page
|
||||
}, serverConfig);
|
||||
});
|
||||
|
|
|
@ -14,6 +14,7 @@ exports.bdd = kbnInternVars.bdd;
|
|||
exports.intern = kbnInternVars.intern;
|
||||
exports.config = exports.intern.config;
|
||||
exports.defaultTimeout = exports.config.defaultTimeout;
|
||||
exports.defaultTryTimeout = exports.config.defaultTryTimeout;
|
||||
exports.defaultFindTimeout = exports.config.defaultFindTimeout;
|
||||
exports.scenarioManager = new ScenarioManager(url.format(exports.config.servers.elasticsearch));
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { common, config, defaultFindTimeout, remote, shieldPage } from '../';
|
||||
import { common, config, defaultTryTimeout, defaultFindTimeout, remote, shieldPage } from '../';
|
||||
|
||||
export default (function () {
|
||||
var Promise = require('bluebird');
|
||||
|
@ -225,7 +225,7 @@ export default (function () {
|
|||
},
|
||||
|
||||
try(block) {
|
||||
return this.tryForTime(defaultFindTimeout, block);
|
||||
return this.tryForTime(defaultTryTimeout, block);
|
||||
},
|
||||
|
||||
log(...args) {
|
||||
|
|
Loading…
Reference in a new issue