Skip to content

Commit 666df3e

Browse files
committed
Specify address and port
1 parent 613849c commit 666df3e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"test:grunt": "grunt ci --force",
2424
"test:ci": "npm run mocha && npm run test:server && npm run test:grunt",
2525
"test:coverage": "c8 npm run test:ci",
26-
"test:server": "start-server-and-test start:server http://localhost:8888 \"mocha --fgrep=server\"",
27-
"start:server": "java -cp ./node_modules/vnu-jar/build/dist/vnu.jar nu.validator.servlet.Main"
26+
"test:server": "start-server-and-test start:server http://127.0.0.1:8080 \"mocha --fgrep=server\"",
27+
"start:server": "java -Dnu.validator.servlet.bind-address=127.0.0.1 -cp ./node_modules/vnu-jar/build/dist/vnu.jar nu.validator.servlet.Main 8080"
2828
},
2929
"dependencies": {
3030
"async": "^3.2.3",

test/server_test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ describe('htmllint', () => {
88
it('with relative paths using server', done => {
99
const options = {
1010
files: ['test/fixtures/valid.html', 'test/fixtures/invalid.html'],
11-
server: {},
11+
server: {
12+
host: '127.0.0.1',
13+
port: 8080
14+
},
1215
errorlevels: ['info', 'warning', 'error']
1316
};
1417
const expected = expectedResults.server.invalid;

0 commit comments

Comments
 (0)