Skip to content

Commit

Permalink
Fix index config tests (#4467)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload authored Jan 26, 2024
1 parent 688a5f7 commit be6ec44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"split_store_max_num_bytes": "1T",
"split_store_max_num_splits": 10000,
"max_concurrent_split_uploads": 8,
o
"max_merge_write_throughput": "100mb"
},
"ingest_api": {
"replication_factor": 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ enable_otlp_endpoint = true
split_store_max_num_bytes = "1T"
split_store_max_num_splits = 10_000
max_concurrent_split_uploads = 8
max_merge_write_throughput = 100mb
max_merge_write_throughput = "100mb"

[ingest_api]
replication_factor = 2
Expand Down
10 changes: 4 additions & 6 deletions quickwit/quickwit-config/src/node_config/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ mod tests {
max_concurrent_split_uploads: 8,
cpu_capacity: IndexerConfig::default_cpu_capacity(),
enable_cooperative_indexing: false,
max_merge_write_throughput: None,
max_merge_write_throughput: Some(ByteSize::mb(100)),
}
);
assert_eq!(
Expand Down Expand Up @@ -814,11 +814,9 @@ mod tests {
"QW_DATA_DIR".to_string(),
data_dir_path.to_string_lossy().to_string(),
);
assert!(
load_node_config_with_env(ConfigFormat::Toml, file_content.as_bytes(), &env_vars,)
.await
.is_ok()
);
load_node_config_with_env(ConfigFormat::Toml, file_content.as_bytes(), &env_vars)
.await
.unwrap();
}

#[tokio::test]
Expand Down

0 comments on commit be6ec44

Please sign in to comment.