From c193a0571ca580d4c6e5b221eeb9f701aa5c50e2 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sun, 2 May 2021 16:18:46 +0200 Subject: [PATCH] Disable Default Config Test For now, it fails if there is a local config, differing from the default config. --- src/common/input/config.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/common/input/config.rs b/src/common/input/config.rs index daa52b03..09ad2e74 100644 --- a/src/common/input/config.rs +++ b/src/common/input/config.rs @@ -196,10 +196,12 @@ mod config_test { assert_eq!(result.unwrap(), Config::default()); } - #[test] - fn try_from_cli_args_default() { - let opts = CliArgs::default(); - let result = Config::try_from(&opts); - assert_eq!(result.unwrap(), Config::default()); - } + // This test needs a split somewhere between test and normal runs, + // since otherwise it would look in a local configuration and fail. + //#[test] + //fn try_from_cli_args_default() { + //let opts = CliArgs::default(); + //let result = Config::try_from(&opts); + //assert_eq!(result.unwrap(), Config::default()); + //} }