From e016e4625a54698b4dedeb42d178299c14958cef Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 10 Dec 2020 20:45:08 +0100 Subject: [PATCH] iox-#252 fix process introspection thread test Signed-off-by: Mathias Kraus --- .../test/moduletests/test_roudi_process_introspection.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iceoryx_posh/test/moduletests/test_roudi_process_introspection.cpp b/iceoryx_posh/test/moduletests/test_roudi_process_introspection.cpp index 0c8c9b1eea..719fff8f87 100644 --- a/iceoryx_posh/test/moduletests/test_roudi_process_introspection.cpp +++ b/iceoryx_posh/test/moduletests/test_roudi_process_introspection.cpp @@ -161,6 +161,11 @@ TEST_F(ProcessIntrospection_test, thread) introspectionAccess.registerPublisherPort(std::move(m_mockPublisherPortUserIntrospection)); + EXPECT_CALL(introspectionAccess.getPublisherPort().value(), tryAllocateChunk(_)) + .WillRepeatedly( + Return(iox::cxx::expected::create_value( + m_chunk.get()->chunkHeader()))); + EXPECT_CALL(introspectionAccess.getPublisherPort().value(), hasSubscribers()).WillRepeatedly(Return(true)); EXPECT_CALL(introspectionAccess.getPublisherPort().value(), offer()).Times(1); EXPECT_CALL(introspectionAccess.getPublisherPort().value(), sendChunk(_)).Times(Between(2, 8));