diff --git a/src/config.rs b/src/config.rs index 7398254..f9aded0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2720,9 +2720,10 @@ mod test { #[test] fn read_your_own_config() { let out_config = get_default_config(); + let out_path = out_config.config_file.clone(); let out_file = out_config.to_string(); let in_file = ConfigFile::parse( - &out_file, Path::new("/home/test/.routinator.conf") + &out_file, &out_path ).unwrap(); let in_config = Config::from_config_file(in_file).unwrap(); assert_eq!(out_config, in_config);