Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle multiple seleniums better

  • Loading branch information...
commit 1d9d401d30b4b8f66bcf111cca329f15ea7a0a3f 1 parent 1590ad1
@zzo authored
View
2  backend/nodejute/jute/actions/getTest.js
@@ -102,7 +102,7 @@ module.exports = {
// No tests for me - end if we're a Selenium browser
if (req.session.selenium) {
// Selenium job all done!!
- hub.emit('seleniumTestsFinished');
+ hub.emit(req.session.uuid + 'finished');
} else {
hub.emit('testsDone');
}
View
3  backend/nodejute/jute/actions/runTest.js
@@ -190,7 +190,8 @@ module.exports = {
// Start up for a Selenium browser & Listen for results
var totalError = '';
hub.on('action:seleniumDone', function(err, selID) {
- seleniumIDs.pop();
+ seleniumIDs.pop(); // a selenium browser finished - we don't really care which one
+ // as we're just waiting for all to finish
var done = !seleniumIDs.length;
if (done) hub.removeListener('action:seleniumDone', arguments.callee);
View
2  backend/nodejute/jute/actions/startSelenium.js
@@ -83,7 +83,7 @@ module.exports = {
hub.emit('action:seleniumDone', err, selID);
}
};
- cb = hub.once('seleniumTestsFinished', cb);
+ cb = hub.once(selID + 'finished', cb);
browser.
chain.
View
2  backend/nodejute/package.json
@@ -2,7 +2,7 @@
"name": "jute",
"description": "Javascript Unit Test Environment",
"keywords": ["selenium", "test", "testing", "unit", "tests"],
- "version": "0.0.52",
+ "version": "0.0.53",
"author": "Mark Ethan Trostler <mark@zzo.com>",
"preferGlobal": true,
"bin" : {
Please sign in to comment.
Something went wrong with that request. Please try again.