Skip to content

Commit

Permalink
Refs #11676. Fix bug using not protected code in a test (#2036)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware authored Jul 5, 2021
1 parent c0783e7 commit 4298a13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/blackbox/api/dds-pim/PubSubWriterReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,9 @@ class PubSubWriterReader
if (ret_val)
{
std::string topic_name = topic_name_;
size_t vector_size = entities_extra_.size();

for (size_t i = 0; i < entities_extra_.size(); i++)
for (size_t i = 0; i < vector_size; i++)
{
topic_name += "/";
}
Expand Down Expand Up @@ -451,7 +452,9 @@ class PubSubWriterReader
break;
}

mutex_.lock();
entities_extra_.push_back({topic, datawriter, datareader});
mutex_.unlock();
}
}

Expand Down

0 comments on commit 4298a13

Please sign in to comment.