Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

Where to set runner.timeout? #478

Open
butchmarshall opened this issue Jan 11, 2017 · 1 comment
Open

Where to set runner.timeout? #478

butchmarshall opened this issue Jan 11, 2017 · 1 comment

Comments

@butchmarshall
Copy link

butchmarshall commented Jan 11, 2017

I keep hitting the 15000 ms runner timeout in lib/runners/browser/remote-runner.js

function monitorClientTimeout(runner, client) {
clearTimeout(client.timer);
client.timer = setTimeout(function () {
runner.clientTimeout(client);
}, runner.timeout || 15000);
}

I'm setting this.timeout in the prepare(), and this does timeout, however, I cannot seem to find a way to set the runner.timeout?

buster.testCase("my_test", {
prepare: function() {
this.timeout = 30000;
},
setUp: function() {
},
[...]
})

I think this is set via testRunnerOptions... but I cannot figure out where to set testRunnerOptions either!

@butchmarshall
Copy link
Author

So, I don't think its possible to set this?

It looks like the runner created has no props passed to it?

module.exports = bane.createEventEmitter({
create: function (emitter, logger) {
var runner = Object.create(this);
runner.emitter = emitter;
runner.logger = logger;
runner.console = runner;
delegateEvents(emitter, runner);
monitorSlaveDeath(this, emitter);
return runner;
},

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant