Skip to content

Commit

Permalink
Application config mqtt port consitencies
Browse files Browse the repository at this point in the history
Changed the env port from 1234 to 8883
  • Loading branch information
JonahLuckett committed Oct 21, 2019
1 parent 29dcfee commit dcd6249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"@babel/core": "7.4.4",
"@babel/preset-env": "7.4.4",
"@babel/register": "7.4.4",
"@cloudant/cloudant": "2.1.0",
"@cloudant/cloudant": "^2.1.0",
"@istanbuljs/nyc-config-babel": "^2.1.1",
"babel-plugin-istanbul": "^5.1.4",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"coveralls": "3.0.3",
"mocha": "6.1.4",
"mocha-steps": "^1.3.0",
Expand Down
4 changes: 2 additions & 2 deletions test/ApplicationConfig.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ describe('WIoTP Application Configuration', () => {
});

it('Load port as a string with environment variables', () => {
process.env['WIOTP_OPTIONS_MQTT_PORT'] = '1234';
process.env['WIOTP_OPTIONS_MQTT_PORT'] = '8883';
let config = ApplicationConfig.parseEnvVars();
expect(config.options.mqtt.port).to.equal(1234);
expect(config.options.mqtt.port).to.equal(8883);
});

it('Incorrect logLevel in config file throws error', () => {
Expand Down

0 comments on commit dcd6249

Please sign in to comment.