@@ -3437,7 +3437,7 @@ TEST(DDSStatus, keyed_reliable_positive_acks_disabled_on_unack_sample_removed)
3437
3437
}
3438
3438
3439
3439
/* !
3440
- * Regression Test for 22658: when he entire history is acked in volatile, given that the entries are deleted from the
3440
+ * Regression Test for 22658: when the entire history is acked in volatile, given that the entries are deleted from the
3441
3441
* history, check_acked_status satisfies min_low_mark >= get_seq_num_min() because seq_num_min is unknown. This makes
3442
3442
* try_remove to fail, because it tries to remove changes but there were none. This causes prepare_change to not
3443
3443
* perform the changes, since the history was full and could not delete any changes.
@@ -3448,7 +3448,7 @@ TEST(DDSStatus, entire_history_acked_volatile_unknown_pointer)
3448
3448
PubSubWriter<HelloWorldPubSubType> writer (TEST_TOPIC_NAME);
3449
3449
PubSubReader<HelloWorldPubSubType> reader (TEST_TOPIC_NAME);
3450
3450
3451
- writer.reliability (eprosima::fastdds::dds::RELIABLE_RELIABILITY_QOS, 200 )
3451
+ writer.reliability (eprosima::fastdds::dds::RELIABLE_RELIABILITY_QOS, eprosima::fastdds::dds::Duration_t ( 200 , 0 ) )
3452
3452
.durability_kind (eprosima::fastdds::dds::VOLATILE_DURABILITY_QOS)
3453
3453
.history_kind (eprosima::fastdds::dds::KEEP_ALL_HISTORY_QOS)
3454
3454
.resource_limits_max_instances (1 )
@@ -3469,6 +3469,9 @@ TEST(DDSStatus, entire_history_acked_volatile_unknown_pointer)
3469
3469
auto data = default_helloworld_data_generator (2 );
3470
3470
for (auto sample : data)
3471
3471
{
3472
+ // A value of true means that the sample was sent successfully.
3473
+ // This aligns with the expected behaviour of having the history
3474
+ // acknowledged and emptied before the next message.
3472
3475
EXPECT_TRUE (writer.send_sample (sample));
3473
3476
}
3474
3477
}
0 commit comments