@@ -5,15 +5,11 @@ const request = RSVP.denodeify(require('request'));
55const expect = require ( 'chai' ) . use ( require ( 'chai-string' ) ) . expect ;
66const { startServer, stopServer } = require ( '../../test-libs' ) ;
77
8- const port = 44554
98describe ( 'simple acceptance' , function ( ) {
109 this . timeout ( 30000 ) ;
1110
1211 before ( function ( ) {
13- return startServer ( {
14- port,
15- } ) ;
16-
12+ return startServer ( ) ;
1713 } ) ;
1814
1915 after ( function ( ) {
@@ -22,7 +18,7 @@ describe('simple acceptance', function() {
2218
2319 it ( '/ HTML contents' , async ( ) => {
2420 const response = await request ( {
25- url : `http://localhost:${ port } /` ,
21+ url : `http://localhost:45678 /` ,
2622 headers : {
2723 'Accept' : 'text/html'
2824 }
@@ -35,7 +31,7 @@ describe('simple acceptance', function() {
3531
3632 it ( 'with fastboot query parameter turned on' , async ( ) => {
3733 const response = await request ( {
38- url : `http://localhost:${ port } /?fastboot=true` ,
34+ url : `http://localhost:45678 /?fastboot=true` ,
3935 headers : {
4036 'Accept' : 'text/html'
4137 }
@@ -48,7 +44,7 @@ describe('simple acceptance', function() {
4844
4945 it ( 'with fastboot query parameter turned off' , async ( ) => {
5046 const response = await request ( {
51- url : `http://localhost:${ port } /?fastboot=false` ,
47+ url : `http://localhost:45678 /?fastboot=false` ,
5248 headers : {
5349 'Accept' : 'text/html'
5450 }
@@ -61,7 +57,7 @@ describe('simple acceptance', function() {
6157
6258 it ( '/posts HTML contents' , async ( ) => {
6359 const response = await request ( {
64- url : `http://localhost:${ port } /posts` ,
60+ url : `http://localhost:45678 /posts` ,
6561 headers : {
6662 'Accept' : 'text/html'
6763 }
@@ -75,7 +71,7 @@ describe('simple acceptance', function() {
7571
7672 it ( '/not-found HTML contents' , async ( ) => {
7773 const response = await request ( {
78- url : `http://localhost:${ port } /not-found` ,
74+ url : `http://localhost:45678 /not-found` ,
7975 headers : {
8076 'Accept' : 'text/html'
8177 }
@@ -88,7 +84,7 @@ describe('simple acceptance', function() {
8884
8985 it ( '/boom HTML contents' , async ( ) => {
9086 const response = await request ( {
91- url : `http://localhost:${ port } /boom` ,
87+ url : `http://localhost:45678 /boom` ,
9288 headers : {
9389 'Accept' : 'text/html'
9490 }
@@ -101,7 +97,7 @@ describe('simple acceptance', function() {
10197
10298 it ( '/imports HTML contents' , async ( ) => {
10399 const response = await request ( {
104- url : `http://localhost:${ port } /imports` ,
100+ url : `http://localhost:45678 /imports` ,
105101 headers : {
106102 'Accept' : 'text/html'
107103 }
@@ -113,15 +109,15 @@ describe('simple acceptance', function() {
113109 } ) ;
114110
115111 it ( '/assets/vendor.js' , async ( ) => {
116- const response = await request ( `http://localhost:${ port } /assets/vendor.js` )
112+ const response = await request ( `http://localhost:45678 /assets/vendor.js` )
117113
118114 expect ( response . statusCode ) . to . equal ( 200 ) ;
119115 expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "application/javascript; charset=utf-8" ) ;
120116 expect ( response . body ) . to . contain ( "Ember =" ) ;
121117 } ) ;
122118
123119 it ( '/assets/basic-app.js' , async ( ) => {
124- const response = await request ( `http://localhost:${ port } /assets/basic-app.js` )
120+ const response = await request ( `http://localhost:45678 /assets/basic-app.js` )
125121
126122 expect ( response . statusCode ) . to . equal ( 200 ) ;
127123 expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "application/javascript; charset=utf-8" ) ;
0 commit comments