Skip to content

Commit 35381ba

Browse files
authored
Add test for config Serializer (#102)
* Add test for serializer * fmt
1 parent e591865 commit 35381ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,4 +570,10 @@ mod test {
570570
);
571571
assert_eq!(get_config().pools["simple_db"].users["0"].pool_size, 5);
572572
}
573+
574+
#[tokio::test]
575+
async fn test_serialize_configs() {
576+
parse("pgcat.toml").await.unwrap();
577+
print!("{}", toml::to_string(&get_config()).unwrap());
578+
}
573579
}

0 commit comments

Comments
 (0)