mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Try fix test also on Windows.
This commit is contained in:
@ -2720,9 +2720,10 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
fn read_your_own_config() {
|
fn read_your_own_config() {
|
||||||
let out_config = get_default_config();
|
let out_config = get_default_config();
|
||||||
|
let out_path = out_config.config_file.clone();
|
||||||
let out_file = out_config.to_string();
|
let out_file = out_config.to_string();
|
||||||
let in_file = ConfigFile::parse(
|
let in_file = ConfigFile::parse(
|
||||||
&out_file, Path::new("/home/test/.routinator.conf")
|
&out_file, &out_path
|
||||||
).unwrap();
|
).unwrap();
|
||||||
let in_config = Config::from_config_file(in_file).unwrap();
|
let in_config = Config::from_config_file(in_file).unwrap();
|
||||||
assert_eq!(out_config, in_config);
|
assert_eq!(out_config, in_config);
|
||||||
|
Reference in New Issue
Block a user