Skip to content

Commit 62d5061

Browse files
committed
change port number
1 parent e71afdd commit 62d5061

4 files changed

Lines changed: 17 additions & 28 deletions

File tree

test-packages/basic-app/test/server-assets-test.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,27 @@ const request = RSVP.denodeify(require('request'));
55
const expect = require('chai').use(require('chai-string')).expect;
66
const { startServer, stopServer } = require('../../test-libs');
77

8-
const port = 49561;
98
describe('serve assets acceptance', function() {
109
this.timeout(20000);
1110

1211
before(function() {
13-
return startServer({
14-
port,
15-
});
16-
12+
return startServer();
1713
});
1814

1915
after(function() {
2016
return stopServer();
2117
});
2218

2319
it('/assets/vendor.js', async () => {
24-
const response = await request(`http://localhost:${port}/assets/vendor.js`)
20+
const response = await request(`http://localhost:45678/assets/vendor.js`)
2521

2622
expect(response.statusCode).to.equal(200);
2723
expect(response.headers["content-type"]).to.equalIgnoreCase("application/javascript; charset=utf-8");
2824
expect(response.body).to.contain("Ember =");
2925
});
3026

3127
it('/assets/basic-app.js', async () => {
32-
const response = await request(`http://localhost:${port}/assets/basic-app.js`)
28+
const response = await request(`http://localhost:45678/assets/basic-app.js`)
3329

3430
expect(response.statusCode).to.equal(200);
3531
expect(response.headers["content-type"]).to.equalIgnoreCase("application/javascript; charset=utf-8");

test-packages/basic-app/test/shoebox-test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@ const request = RSVP.denodeify(require('request'));
55
const expect = require('chai').use(require('chai-string')).expect;
66
const { startServer, stopServer } = require('../../test-libs');
77

8-
describe('shoebox - put', function() {
8+
describe.only('shoebox - put', function() {
99
this.timeout(20000);
1010

1111
before(function() {
12-
return startServer({
13-
command: 'serve'
14-
});
15-
12+
return startServer();
1613
});
1714

1815
after(function() {
@@ -21,7 +18,7 @@ describe('shoebox - put', function() {
2118

2219
it('put items into the shoebox', async () => {
2320
const response = await request({
24-
url: 'http://localhost:49741/',
21+
url: 'http://localhost:45678/',
2522
headers: {
2623
'Accept': 'text/html'
2724
}

test-packages/basic-app/test/simple-test.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@ const request = RSVP.denodeify(require('request'));
55
const expect = require('chai').use(require('chai-string')).expect;
66
const { startServer, stopServer } = require('../../test-libs');
77

8-
const port = 44554
98
describe('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");

test-packages/test-libs/run-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const runServer = options => {
99
options = options || { };
1010

1111
defaults(options, {
12-
port: '49741',
12+
port: 45678,
1313
command: 'server',
1414
detectServerStart
1515
});

0 commit comments

Comments
 (0)