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

push ping time only if the request complete is successful #348

Merged
merged 11 commits into from
Feb 14, 2024

Conversation

alfred2g
Copy link
Contributor

@alfred2g alfred2g commented Feb 2, 2024

push ping time only if the request complete is successful

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

@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (31bce8a) 82.53% compared to head (628c23e) 82.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #348      +/-   ##
==========================================
+ Coverage   82.53%   82.61%   +0.07%     
==========================================
  Files          20       20              
  Lines        8764     8764              
==========================================
+ Hits         7233     7240       +7     
+ Misses       1531     1524       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@bretambrose bretambrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhh, timeouts.

We should add a test variant that sets operation timeouts, no acks, and verifies we eventually send a ping as expected. See test_mqtt_connection_ping_no for a starting point.

Copy link
Contributor

@bretambrose bretambrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix n ship

tests/v3/connection_state_test.c Outdated Show resolved Hide resolved
@alfred2g alfred2g merged commit d4346e0 into main Feb 14, 2024
31 checks passed
@alfred2g alfred2g deleted the fix_pushoff_ping_time branch February 14, 2024 19:25
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.

3 participants