Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 30, 2023
1 parent bc06f51 commit fabdd0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 1 addition & 5 deletions lib/bindings/HTTPBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,7 @@ function handleIncomingNgsiv2Measure(req, res, next) {
context = fillService(context, { service: 'n/a', subservice: 'n/a' });
config.getLogger().debug(context, 'Processing HTTP NGSIv2 measure');

iotAgentLib.getConfigurationSilently(
config.getConfig().iota.defaultResource || '',
req.apiKey,
processNGSIv2Measure
);
iotAgentLib.getConfiguration(config.getConfig().iota.defaultResource || '', req.apiKey, processNGSIv2Measure);
}

function isCommand(req, res, next) {
Expand Down
5 changes: 3 additions & 2 deletions test/unit/ngsiv2/HTTP_receive_measures-test3.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ const groupCreation = {
resource: '/iot/json',
apikey: 'KL223HHV8732SFL1',
entity_type: 'TheLightType',
trust: '8970A9078A803H3BL98PINEQRW8342HBAMS',
cbHost: 'http://unexistentHost:1026',
service: 'smartgondor',
subservice: 'gardens',
cbHost: 'http://192.168.1.1:1026',
commands: [],
lazy: [],
attributes: [
Expand Down

0 comments on commit fabdd0f

Please sign in to comment.