1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

Don't hardcode port in several places

This commit is contained in:
Jari Bakken 2014-10-23 14:13:17 +02:00
parent 91e615a04b
commit a12f679ed8
2 changed files with 6 additions and 7 deletions

View File

@ -29,6 +29,8 @@
"db-setup": "npm run db-create; npm run db-migrate-up"
},
"dependencies": {
"any-db": "2.1.0",
"any-db-postgres": "2.1.3",
"bluebird": "2.2.2",
"body-parser": "1.4.3",
"db-migrate": "^0.7.1",
@ -39,8 +41,7 @@
"log4js": "0.6.21",
"nconf": "0.6.9",
"pg": "^3.6.1",
"any-db": "2.1.0",
"any-db-postgres": "2.1.3"
"portfinder": "^0.2.1"
},
"devDependencies": {
"chai": "1.9.1",
@ -52,4 +53,4 @@
"xmlbuilder": "^2.4.4",
"mockery": "1.4.0"
}
}
}

View File

@ -1,7 +1,5 @@
var request = require('supertest'),
mockery = require('mockery'),
request = request('http://localhost:4242');
mockery = require('mockery');
describe('The api', function () {
var server;
@ -16,8 +14,8 @@ describe('The api', function () {
mockery.registerSubstitute('./eventDb', '../test/eventDbMock');
mockery.registerSubstitute('./featureDb', '../test/featureDbMock');
server = require('../server');
request = request('http://localhost:' + server.app.get('port'));
});
after(function () {