Skip to content
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

Update error handling for processing data blocks #158

Merged
merged 19 commits into from
Feb 15, 2021

Conversation

yanjos-dev
Copy link
Contributor

Fix error handling in code for ingesting blocks:

  • Replaced NULL checks for pointers to static variables with asserts.
  • Added a check for receiving a data block event from the application that has NULL data.
  • Add a unit test for receiving a null data block.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* Add a unit test for when the OTA Agent fails to initialize the
  file and then the request timer fails to start.
* Add a test for failing to send the events.
* Test for the scenario where the event fails to send.
* Add a test for failing to start the request timer.
* Add a test for failing to send the shutdown event after hitting
  the maximum number of requests.
* Replaced NULL checks for pointers to static variables with
  asserts.
* Added a check for receiving a data block event from the user
  that has NULL data.
* Add a unit test for receiving a null data block.
@gkwicker gkwicker merged commit eb4c479 into aws:main Feb 15, 2021
@yanjos-dev yanjos-dev deleted the fix/ota_c_coverage branch February 15, 2021 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants