-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX broken unit tests #354
Conversation
@@ -181,12 +184,6 @@ describe('Configuration API support', function() { | |||
.post('/iot/protocols', configurationProvision) | |||
.reply(200, {}); | |||
|
|||
contextBrokerMock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this mock is not needed given this test is about generating and detect and error, so I understand the error interrupts the processing flow and CB is never called.
NTC
@@ -186,12 +188,6 @@ describe('Configuration API support', function() { | |||
.post('/iot/protocols', configurationProvision) | |||
.reply(200, {}); | |||
|
|||
contextBrokerMock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this mock is not needed given this test is about generating and detect and error, so I understand the error interrupts the processing flow and CB is never called.
NTC
LGTM @fgalan . I have reviewed the calls and they seem to be consistent! ;) |
Maybe IOTA-LWM2M would need a similar adaptation. Could you manage @dcalvoalonso , please? This PR (and PR telefonicaid/iotagent-ul#313) could serve as guide, so it should be quite straighforward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It seems that tests with IOTA-LWM2M are still being passed since |
Please @dcalvoalonso review