Skip to content

Commit 17bd3f5

Browse files
committed
Remove code attempts to fix appveyor environment issue
1 parent c6ed2ec commit 17bd3f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Client.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function startProxy(port) {
1313
proxy.use(
1414
'/',
1515
httpProxy({
16-
target: 'http://[::]:8080',
16+
target: 'http://0.0.0.0:8080',
1717
ws: true,
1818
changeOrigin: true,
1919
proxyTimeout: 30000,
@@ -30,7 +30,7 @@ describe('Client code', () => {
3030
const options = {
3131
compress: true,
3232
port: 8080,
33-
host: '::',
33+
host: '0.0.0.0',
3434
disableHostCheck: true,
3535
hot: true,
3636
watchOptions: {
@@ -49,15 +49,15 @@ describe('Client code', () => {
4949
jest.setTimeout(50000);
5050

5151
beforeAll(() => {
52-
proxy = startProxy(9000);
52+
proxy = startProxy(8000);
5353
});
5454

5555
afterAll(() => {
5656
proxy.close();
5757
});
5858

5959
it('responds with a 200', (done) => {
60-
const req = request('http://localhost:9000');
60+
const req = request('http://localhost:8000');
6161
req.get('/sockjs-node').expect(200, 'Welcome to SockJS!\n', done);
6262
});
6363

@@ -67,12 +67,12 @@ describe('Client code', () => {
6767
.waitForRequest((requestObj) => requestObj.url().match(/sockjs-node/))
6868
.then((requestObj) => {
6969
expect(requestObj.url()).toMatch(
70-
/^http:\/\/localhost:9000\/sockjs-node/
70+
/^http:\/\/localhost:8000\/sockjs-node/
7171
);
7272
browser.close();
7373
done();
7474
});
75-
page.goto('http://localhost:9000/main');
75+
page.goto('http://localhost:8000/main');
7676
});
7777
});
7878
});

0 commit comments

Comments
 (0)