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

[test] Added yielding for tests that spawn a thread for connect #2883

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

ethouris
Copy link
Collaborator

The problem: although the call of srt_accept_bond is given 2s timeout, it may still happen to not be enough, especially when testing on a weak, loaded machine.

Added the call to this_thread::yield() to make the thread switched to the spawned one so that it can at least start calling the srt_connect method before srt_accept_bond() is going to pick it up. This should help with falsely failing tests in Travis.

@ethouris ethouris added Type: Maintenance Work required to maintain or clean up the code [tests] Area: Unit tests labels Feb 20, 2024
@maxsharabayko maxsharabayko added this to the v1.5.4 milestone Feb 20, 2024
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ea8ea9f) 64.26% compared to head (e3a6649) 64.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2883      +/-   ##
==========================================
+ Coverage   64.26%   64.52%   +0.26%     
==========================================
  Files         101      101              
  Lines       17480    17490      +10     
==========================================
+ Hits        11233    11285      +52     
+ Misses       6247     6205      -42     

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

@maxsharabayko maxsharabayko merged commit 07e22ca into Haivision:master Feb 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[tests] Area: Unit tests Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants