Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanRaj1608 committed Jun 27, 2024
1 parent e769433 commit 2939d04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,6 @@ indexer_config:
indexer_update_topic: indexer_update
indexer_update_message: message
points_per_bucket: 3
solver_config:
x_value: 2.0
y_value: 1.0
6 changes: 6 additions & 0 deletions crates/config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ indexer_config:
indexer_update_topic: indexer_update
indexer_update_message: message
points_per_bucket: 10
solver_config:
x_value: 2.0
y_value: 1.0
"#;
assert_eq!(
if let ConfigError::SerdeError(err) = Config::from_yaml_str(&config).unwrap_err() {
Expand Down Expand Up @@ -555,6 +558,9 @@ indexer_config:
indexer_update_topic: indexer_update
indexer_update_message: message
points_per_bucket: 10
solver_config:
x_value: 2.0
y_value: 1.0
"#;

assert_eq!(
Expand Down

0 comments on commit 2939d04

Please sign in to comment.