From bed7bffed0376927c83a9313157e9418e7997dba Mon Sep 17 00:00:00 2001 From: Danyal Aytekin Date: Thu, 9 Nov 2023 18:44:00 +0000 Subject: [PATCH] Fix port type treatment --- test/integration/setup.js | 2 +- test/integration/startup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/setup.js b/test/integration/setup.js index 267ecd3..329f1ca 100644 --- a/test/integration/setup.js +++ b/test/integration/setup.js @@ -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) { diff --git a/test/integration/startup.js b/test/integration/startup.js index ead2e7a..3b5e5fa 100644 --- a/test/integration/startup.js +++ b/test/integration/startup.js @@ -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() {