Skip to content

Commit c6ed2ec

Browse files
committed
Try ipv6 version to fix issue on appveyor env
1 parent 1e16b4b commit c6ed2ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/Client.test.js

Lines changed: 3 additions & 5 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://0.0.0.0:8080',
16+
target: 'http://[::]:8080',
1717
ws: true,
1818
changeOrigin: true,
1919
proxyTimeout: 30000,
@@ -30,17 +30,15 @@ describe('Client code', () => {
3030
const options = {
3131
compress: true,
3232
port: 8080,
33-
host: '0.0.0.0',
33+
host: '::',
3434
disableHostCheck: true,
3535
hot: true,
3636
watchOptions: {
3737
poll: true,
3838
},
3939
};
4040
addEntries(config, options);
41-
helper.start(config, options, () => {
42-
setTimeout(done, 15000);
43-
});
41+
helper.start(config, options, done);
4442
});
4543

4644
afterAll(helper.close);

0 commit comments

Comments
 (0)