Skip to content

Commit

Permalink
Fix port type treatment
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalaytekin committed Nov 9, 2023
1 parent 61fb2d1 commit bed7bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const request = require('request');
const config = {
database: process.env.DATABASE || 'mongodb://127.0.0.1/pa11y-webservice-test',
host: process.env.HOST || '0.0.0.0',
port: process.env.PORT || 3000
port: Number(process.env.PORT) || 3000
};

before(function(done) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const app = require('../../app');
const config = {
database: process.env.DATABASE || 'mongodb://127.0.0.1/pa11y-webservice-test',
host: process.env.HOST || '0.0.0.0',
port: process.env.PORT_FOR_SPINUP_TEST || 3010
port: Number(process.env.PORT_FOR_SPINUP_TEST) || 3010
};

describe('pa11y-webservice lifecycle', function() {
Expand Down

0 comments on commit bed7bff

Please sign in to comment.