Skip to content
Snippets Groups Projects
Commit 58f53bae authored by Ian Jackson's avatar Ian Jackson
Browse files

config defaults: Test that going via builder explicitly is the same

Add this test even though our construction of the Default and Builder
ought to trivially ensure that it's true.
parent 5990df53
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,10 @@ mod test {
let default = ArtiConfig::default();
assert_eq!(&parsed, &default);
let built_default = ArtiConfigBuilder::default().build().unwrap();
assert_eq!(&parsed, &built_default);
assert_eq!(&default, &built_default);
// Make sure that the client configuration this gives us is the default one.
let client_config = parsed.tor_client_config().unwrap();
let dflt_client_config = TorClientConfig::default();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment