mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 12:22:55 +00:00
fix: config test failed and use similar_asserts::assert_eq to replace assert_eq for long string compare (#4731)
* fix: config test failed and use 'similar_asserts::assert_eq' to replace 'assert_eq' for long string compare * Update Cargo.toml Co-authored-by: Yingwen <realevenyag@gmail.com> * Update src/cmd/tests/load_config_test.rs Co-authored-by: Yingwen <realevenyag@gmail.com> --------- Co-authored-by: Ruihang Xia <waynestxia@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com>
This commit is contained in:
@@ -888,7 +888,7 @@ write_interval = "30s"
|
||||
.trim()
|
||||
.to_string();
|
||||
let body_text = drop_lines_with_inconsistent_results(res_get.text().await);
|
||||
assert_eq!(body_text, expected_toml_str);
|
||||
similar_asserts::assert_eq!(body_text, expected_toml_str);
|
||||
}
|
||||
|
||||
fn drop_lines_with_inconsistent_results(input: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user