Skip to content

Commit

Permalink
Fixup channels test (#6265)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtropets authored Jun 13, 2024
1 parent d814578 commit b4afd5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .snpcc_canary
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
O \ o | /
/-xXx--//-----x=x--/-xXx--/---x---->>>--/
...
/\/\
/\/\(-_-)
6 changes: 3 additions & 3 deletions src/node/test/channels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1554,14 +1554,14 @@ TEST_CASE_FIXTURE(IORingbuffersFixture, "Key rotation")
constexpr int wait_finish_attempts = 100;
for (int attempt = 0; attempt < wait_finish_attempts; attempt++)
{
bool skip_waiting{false};
bool skip_waiting{true};
{
std::lock_guard<std::mutex> guard(sent_by_1.lock);
skip_waiting |= sent_by_1.to_send.empty();
skip_waiting &= sent_by_1.to_send.empty();
}
{
std::lock_guard<std::mutex> guard(sent_by_2.lock);
skip_waiting |= sent_by_2.to_send.empty();
skip_waiting &= sent_by_2.to_send.empty();
}
if (skip_waiting)
{
Expand Down

0 comments on commit b4afd5d

Please sign in to comment.