-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[TESTS] Added unit tests for bonding #1559
base: master
Are you sure you want to change the base?
Conversation
[ RUN ] Bonding.ConnectNonBlocking
Created group socket: 1428448644
Connecting two sockets
[A] Waiting for accept
Connect callback. Socket: 354706819, error: 0, token: 3
Returned from connecting two sockets
/Users/travis/build/Haivision/srt/test/test_bonding.cpp:162: Failure
Expected equality of these values:
ev[0].events
Which is: 17
SRT_EPOLL_IN
Which is: 1
Connect callback. Socket: 354706818, error: 0, token: 4
[ FAILED ] Bonding.ConnectNonBlocking (1188 ms) |
LOL actually didn't expect that the uwait might report IN and UPDATE in one. That case is also to be tolerated, I'll make a fix. |
…ue for connect-non-blocking
Codecov Report
@@ Coverage Diff @@
## master #1559 +/- ##
==========================================
+ Coverage 60.74% 63.50% +2.75%
==========================================
Files 78 78
Lines 17444 17762 +318
==========================================
+ Hits 10596 11279 +683
+ Misses 6848 6483 -365
Continue to review full report at Codecov.
|
… exit checks in tsbpd. Suppressed IPE log when unsubscribing
…tsbpd_cc wait 125ms interrupt for sanity check
Added tests:
TEST(Bonding, ConnectBlind)
Connect to a nonexistent endpoint and interrupt it by closing a group.
TEST(Bonding, ConnectNonBlocking)
Test connecting with non-blocking mode and correctly reported epoll events.
TEST(Bonding, BackupPriorityBegin)
Setup two links with different weight and expect the one with higher priority to be activated.
TEST(Bonding, BackupPriorityTakeover)
Setup a new link while in transmission and expect the new link with higher priority takes over, even if there's no need to backup.
TEST(Bonding, BackupPrioritySelection)
Setup two links with high priority and send a packet to activate one. Then connect a link with low priority, kill the active link and send the packet - expected is that the out of two remaining link, the one with higher priority is activated.