From 6c0e022f7aa08d21831bb4a6dc396a0ec649fde2 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sat, 24 Sep 2022 10:23:27 -0400 Subject: [PATCH] Test that a value containing '=' is not split more than once --- src/conf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf.rs b/src/conf.rs index 9bb13b1..4dc46e8 100644 --- a/src/conf.rs +++ b/src/conf.rs @@ -106,14 +106,14 @@ mod tests { fn test_set_all_values() { let mut conf = Conf::get_default_conf(); let tf = write_conf_to_temp_file(r#" -job_dir = /value +job_dir = /val=ue output_dir=/var/lib/output check_interval=3600 driver_url = https://example.test:6666 "#); let f = tf.path().to_str().unwrap(); conf.update_from_file(f); - assert!(String::from_str("/value").unwrap().eq(&conf.job_dir)); + assert!(String::from_str("/val=ue").unwrap().eq(&conf.job_dir)); assert!(String::from_str("/var/lib/output").unwrap().eq(&conf.output_dir)); assert!(String::from_str("https://example.test:6666").unwrap().eq(&conf.driver_url)); assert_eq!(3600, conf.check_interval.as_secs());