From 14e8cf5aa0347d539d937eeea59d63fee9ac8561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Wed, 3 Apr 2024 14:55:31 +0200 Subject: [PATCH] Refs #20738. Fix latency test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/performance/latency/LatencyTestSubscriber.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/performance/latency/LatencyTestSubscriber.cpp b/test/performance/latency/LatencyTestSubscriber.cpp index 5fcffcfe673..dae6900b0a3 100644 --- a/test/performance/latency/LatencyTestSubscriber.cpp +++ b/test/performance/latency/LatencyTestSubscriber.cpp @@ -600,7 +600,10 @@ void LatencyTestSubscriber::LatencyDataReaderListener::on_data_available( if (sub->echo_) { // no bounce overload recorded - reinterpret_cast(data)->bounce = 0; + if (!sub->dynamic_types_) + { + reinterpret_cast(data)->bounce = 0; + } if (!sub->data_writer_->write(data)) {