awslabs / aws-c-mqtt

C99 implementation of the MQTT 3.1.1 specification.
Apache License 2.0
93 stars 29 forks source link

add a millisecond sleep to insure tests dont share socket endpoints #276

Closed sbSteveK closed 1 year ago

sbSteveK commented 1 year ago

Tests that ran too close to one another were causing identical endpoints for local sockets. Added a millisecond sleep during endpoint generation.

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -0.05 :warning:

Comparison is base (0b6c56c) 81.80% compared to head (32fb467) 81.76%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #276 +/- ## ========================================== - Coverage 81.80% 81.76% -0.05% ========================================== Files 16 16 Lines 7122 7122 ========================================== - Hits 5826 5823 -3 - Misses 1296 1299 +3 ``` [see 1 file with indirect coverage changes](https://codecov.io/gh/awslabs/aws-c-mqtt/pull/276/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.