Skip to content

Commit

Permalink
Add test for config Serializer (#102)
Browse files Browse the repository at this point in the history
* Add test for serializer

* fmt
  • Loading branch information
drdrsh authored Jul 30, 2022
1 parent e591865 commit 35381ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 35381ba

Please sign in to comment.