Add test for config Serializer (#102)

* Add test for serializer

* fmt
This commit is contained in:
Mostafa Abdelraouf
2022-07-30 18:28:25 -05:00
committed by GitHub
parent e591865d78
commit 35381ba8fd

View File

@@ -570,4 +570,10 @@ mod test {
);
assert_eq!(get_config().pools["simple_db"].users["0"].pool_size, 5);
}
#[tokio::test]
async fn test_serialize_configs() {
parse("pgcat.toml").await.unwrap();
print!("{}", toml::to_string(&get_config()).unwrap());
}
}