Skip to content

Commit b4afd5d

Browse files
authored
Fixup channels test (#6265)
1 parent d814578 commit b4afd5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.snpcc_canary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
O \ o | /
44
/-xXx--//-----x=x--/-xXx--/---x---->>>--/
55
...
6-
/\/\
6+
/\/\(-_-)

src/node/test/channels.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,14 +1554,14 @@ TEST_CASE_FIXTURE(IORingbuffersFixture, "Key rotation")
15541554
constexpr int wait_finish_attempts = 100;
15551555
for (int attempt = 0; attempt < wait_finish_attempts; attempt++)
15561556
{
1557-
bool skip_waiting{false};
1557+
bool skip_waiting{true};
15581558
{
15591559
std::lock_guard<std::mutex> guard(sent_by_1.lock);
1560-
skip_waiting |= sent_by_1.to_send.empty();
1560+
skip_waiting &= sent_by_1.to_send.empty();
15611561
}
15621562
{
15631563
std::lock_guard<std::mutex> guard(sent_by_2.lock);
1564-
skip_waiting |= sent_by_2.to_send.empty();
1564+
skip_waiting &= sent_by_2.to_send.empty();
15651565
}
15661566
if (skip_waiting)
15671567
{

0 commit comments

Comments
 (0)