Skip to content

Commit

Permalink
Slightly improved test to allow to pass in unstable timing conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Malecki committed Jan 14, 2025
1 parent 62e3500 commit 92a9ece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_bonding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,9 @@ TEST(Bonding, ConnectNonBlocking)

cout << "[A] Waiting for accept\n";

// Yield to allow the "too early" sending to fail
std::this_thread::yield();

// This can wait in infinity; worst case it will be killed in process.
int uwait_res = srt_epoll_uwait(lsn_eid, ev, 3, -1);
EXPECT_EQ(uwait_res, 1);
Expand Down

0 comments on commit 92a9ece

Please sign in to comment.