Skip to content

Commit

Permalink
Update src/test/function_test/utils/test_util.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Wang <wangdan@apache.org>
  • Loading branch information
acelyc111 and empiredan authored Apr 17, 2023
1 parent b5c598a commit 0a83122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/function_test/utils/test_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ int test_util::get_leader_count(const std::string &table_name, int replica_serve
run_cmd_from_project_root(
fmt::format("echo 'app {} -djo {}' | ./run.sh shell", table_name, json_filename));
std::ifstream f(json_filename);
json data = json::parse(f);
const auto data = json::parse(f);
int leader_count = 0;
for (const auto &replica : data["replicas"]) {
const auto &primary = to_string(replica["primary"]);
Expand Down

0 comments on commit 0a83122

Please sign in to comment.