Skip to content

Commit a507ff7

Browse files
committed
Cleaned test_sequential_writter to fix cpplint test failures
Signed-off-by: Luke Sy <[email protected]>
1 parent f09c25d commit a507ff7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rosbag2_cpp/test/rosbag2_cpp/test_sequential_writer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ TEST_F(SequentialWriterTest, circular_logging_limits_total_size_by_max_record_si
11371137
TEST_F(SequentialWriterTest, circular_logging_limits_total_duration_by_max_record_duration)
11381138
{
11391139
const uint64_t max_bagfile_size = 3; // split every 3 writes
1140-
const uint64_t max_record_duration_sec = 3; // total duration cap
1140+
const uint64_t max_record_duration_sec = 3; // total duration cap
11411141
const int message_count = 20;
11421142

11431143
auto sequential_writer = std::make_unique<rosbag2_cpp::writers::SequentialWriter>(
@@ -1147,7 +1147,7 @@ TEST_F(SequentialWriterTest, circular_logging_limits_total_duration_by_max_recor
11471147
storage_options_.max_cache_size = 0; // direct writes
11481148
storage_options_.max_bagfile_size = max_bagfile_size;
11491149
storage_options_.max_record_size = 0; // disable size-based limit
1150-
storage_options_.max_record_duration = max_record_duration_sec; // enable duration-based limit
1150+
storage_options_.max_record_duration = max_record_duration_sec; // enable duration-based limit
11511151
storage_options_.max_splits = 0; // disable split-count limit
11521152

11531153
writer_->open(storage_options_, {"rmw_format", "rmw_format"});
@@ -1157,7 +1157,7 @@ TEST_F(SequentialWriterTest, circular_logging_limits_total_duration_by_max_recor
11571157
for (int i = 0; i < message_count; ++i) {
11581158
auto msg = std::make_shared<rosbag2_storage::SerializedBagMessage>();
11591159
msg->topic_name = "test_topic";
1160-
msg->recv_timestamp = static_cast<rcutils_time_point_value_t>(i) * 1000000000LL; // ns
1160+
msg->recv_timestamp = static_cast<rcutils_time_point_value_t>(i) * 1000000000LL; // ns
11611161
writer_->write(msg);
11621162
}
11631163
writer_->close();

0 commit comments

Comments
 (0)