log earlier, for formatting sake

This commit is contained in:
Spencer Alger
2015-01-11 16:03:41 -07:00
parent c89f76342a
commit 102d8965d6
2 changed files with 10 additions and 16 deletions

View File

@ -9,25 +9,20 @@ module.exports = function (branch) {
var es = rootReq('src/elasticsearch');
var clientManager = require('./client_manager');
var port = parseInt(process.env.ES_PORT || 9200, 10);
var _release = branch.match(/^v(\d+\.\d+)\.\d+$/);
var apiVersion = _release ? _release[1] : branch;
console.log(' branch:', branch);
console.log(' port:', port);
console.log(' api version:', apiVersion);
describe('integration', function () {
this.timeout(30000);
// before running any tests...
before(function (done) {
this.timeout(5 * 60 * 1000);
var apiVersion = branch;
var match;
if (match = apiVersion.match(/^v(\d+\.\d+)\.\d+$/)) {
apiVersion = match[1];
}
var port = parseInt(process.env.ES_PORT || 9200, 10);
console.log('branch:', branch);
console.log('port:', port);
console.log('api version:', apiVersion);
clientManager.create(apiVersion, port, done);
});