From 0d5dde219fc41472899e2543ee0a8dc8e43383da Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Fri, 17 May 2024 15:46:29 +0200 Subject: [PATCH] Try fix test also on Windows. --- src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);