Skip to content

Commit

Permalink
fix compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
pippocao committed Sep 26, 2024
1 parent c1b60e8 commit ca75d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_log_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ namespace bq {

if (current_tested_num % snapshot_idx_mode == 0) {
bq::string snapshot = log_inst_ptr->take_snapshot(false);
result_ptr->add_result(snapshot_test_str.end_with(snapshot) || snapshot.end_with(snapshot_test_str), "standard: %s, snapshot: %s", output_str_ptr->c_str(), snapshot.substr(snapshot.size() > output_str_ptr->size() ? snapshot.size() - output_str_ptr->size() : 0, snapshot.size() > output_str_ptr->size() ? output_str_ptr->size() : snapshot.size());
result_ptr->add_result(snapshot_test_str.end_with(snapshot) || snapshot.end_with(snapshot_test_str), "standard: %s, snapshot: %s", output_str_ptr->c_str(), snapshot.substr(snapshot.size() > output_str_ptr->size() ? snapshot.size() - output_str_ptr->size() : 0, snapshot.size() > output_str_ptr->size() ? output_str_ptr->size() : snapshot.size()).c_str());
snapshot_idx_mode = (snapshot_idx_mode % 1024) + 1;
}

Expand Down

0 comments on commit ca75d0f

Please sign in to comment.