Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Adds support to use different port in tests (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetmahabaleshwar-okta authored Jul 30, 2020
1 parent aed57b3 commit 2beeb73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/oidc-middleware/test/e2e/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
const JUnitXmlReporter = require('jasmine-reporters').JUnitXmlReporter;
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
const { ProtractorBrowserLogReporter } = require('jasmine-protractor-browser-log-reporter');
const PORT = process.env.PORT || 8080;

exports.config = {
framework: 'jasmine2',
Expand All @@ -35,7 +36,7 @@ exports.config = {
},
directConnect: true,
specs: ['specs/*.js'],
baseUrl: 'http://localhost:8080/',
baseUrl: `http://localhost:${PORT}/`,
loggingPrefs: {
'browser': 'ALL' // for reporter
},
Expand Down
3 changes: 1 addition & 2 deletions packages/oidc-middleware/test/e2e/util/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@

const Config = require('../../../../../.oidc.config.js');

module.exports = Config({ port: 8080 }).webConstants;

module.exports = Config({ port: process.env.PORT || 8080 }).webConstants;

0 comments on commit 2beeb73

Please sign in to comment.