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:
parent
91e615a04b
commit
a12f679ed8
@ -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",
|
||||
|
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user