Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Aug 14, 2024
1 parent 3ecc848 commit e9ad2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/replicator_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ mod tests {
},
replicator_image: "ramsup/replicator:0.0.8".to_string(),
};
let expected = r#"{"source":{"Postgres":{"host":"localhost","port":5432,"name":"postgres","username":"postgres","password":"postgres","slot_name":"replicator_slot","publication":"replicator_publication"}},"sink":{"BigQuery":{"project_id":"project-id","dataset_id":"dataset-id","service_account_key":"key"}},"batch":{"max_size":1000,"max_fill_secs":10},"replicator_image":"ramsup/replicator:0.0.8"}"#;
let expected = r#"{"source":{"Postgres":{"host":"localhost","port":5432,"name":"postgres","username":"postgres","slot_name":"replicator_slot","publication":"replicator_publication"}},"sink":{"BigQuery":{"project_id":"project-id","dataset_id":"dataset-id"}},"batch":{"max_size":1000,"max_fill_secs":10},"replicator_image":"ramsup/replicator:0.0.8"}"#;
let actual = serde_json::to_string(&actual);
assert!(actual.is_ok());
assert_eq!(expected, actual.unwrap());
Expand Down

0 comments on commit e9ad2ab

Please sign in to comment.