From 35651385406048b049f92ccd17d27a0c8acbd2a9 Mon Sep 17 00:00:00 2001 From: Will Killian Date: Tue, 3 Dec 2024 16:40:16 -0500 Subject: [PATCH] Add fiber yield in test before ParallelTester::wait_for Signed-off-by: Will Killian --- cpp/mrc/tests/test_node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/mrc/tests/test_node.cpp b/cpp/mrc/tests/test_node.cpp index 34ea01a85..50bc1d117 100644 --- a/cpp/mrc/tests/test_node.cpp +++ b/cpp/mrc/tests/test_node.cpp @@ -32,6 +32,7 @@ #include "mrc/segment/object.hpp" #include "mrc/utils/string_utils.hpp" +#include #include #include #include @@ -743,7 +744,7 @@ TEST_P(ParallelTests, NodeMultiThread) } DVLOG(1) << context.info() << " Node got value: '" << x << "'" << std::endl; - + boost::this_fiber::yield(); EXPECT_TRUE(parallel_test.wait_for(250ms)); // Double the value return x * 2;