Skip to content

Commit

Permalink
Fix flaky test_retained_per_message_expire
Browse files Browse the repository at this point in the history
We don't need to delay processing of message nodes in testing mode.

#110
  • Loading branch information
halfgaar committed Jul 9, 2024
1 parent 97dfaf5 commit 13a44a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions threaddata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,12 @@ void ThreadData::removeExpiredRetainedMessages()
if (!done)
{
auto f = std::bind(&ThreadData::removeExpiredRetainedMessages, this);

#ifdef TESTING
addImmediateTask(f);
#else
addDelayedTask(f, 100);
#endif
}
}

Expand Down

0 comments on commit 13a44a1

Please sign in to comment.