File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ var DatabaseAdapter = require('../src/DatabaseAdapter');
1111
1212var databaseURI = process . env . DATABASE_URI ;
1313var cloudMain = process . env . CLOUD_CODE_MAIN || './cloud/main.js' ;
14+ var port = 8378 ;
1415
1516// Default server configuration for tests.
1617var defaultConfiguration = {
1718 databaseURI : databaseURI ,
1819 cloud : cloudMain ,
20+ serverURL : 'http://localhost:' + port + '/1' ,
1921 appId : 'test' ,
2022 javascriptKey : 'test' ,
2123 dotNetKey : 'windows' ,
@@ -36,7 +38,6 @@ var defaultConfiguration = {
3638var api = new ParseServer ( defaultConfiguration ) ;
3739var app = express ( ) ;
3840app . use ( '/1' , api ) ;
39- var port = 8378 ;
4041var server = app . listen ( port ) ;
4142
4243// Prevent reinitializing the server from clobbering Cloud Code
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ describe('server', () => {
1010 it ( 'fails if database is unreachable' , done => {
1111 setServerConfiguration ( {
1212 databaseURI : 'mongodb://fake:fake@ds043605.mongolab.com:43605/drew3' ,
13+ serverURL : 'http://localhost:8378/1' ,
1314 appId : 'test' ,
1415 javascriptKey : 'test' ,
1516 dotNetKey : 'windows' ,
You can’t perform that action at this time.
0 commit comments