Skip to content

Commit

Permalink
iox-eclipse-iceoryx#252 fix process introspection thread test
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Kraus <[email protected]>
  • Loading branch information
elBoberido committed Dec 10, 2020
1 parent d098053 commit e016e46
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<iox::mepoo::ChunkHeader*, iox::popo::AllocationError>::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));

Expand Down

0 comments on commit e016e46

Please sign in to comment.