From 6e567114767dd5c5c7a0c6d1140f66838fb88dfa Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 10 Aug 2023 22:35:05 +0900 Subject: [PATCH] Tweak test --- tests/fixtures/reference/.cargo/config.toml | 4 ++-- tests/test.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/fixtures/reference/.cargo/config.toml b/tests/fixtures/reference/.cargo/config.toml index 779c6cb..bd21312 100644 --- a/tests/fixtures/reference/.cargo/config.toml +++ b/tests/fixtures/reference/.cargo/config.toml @@ -30,9 +30,9 @@ browser = "chromium" # browser to use with `cargo doc --open`, [env] # Set ENV_VAR_NAME=value for any process run by Cargo -ENV_VAR_NAME = "value" +ENV_VAR_NAME = { value = "value", force = true } # Set even if already present in environment -ENV_VAR_NAME_2 = { value = "value", force = true } +ENV_VAR_NAME_2 = "value" # Value is relative to .cargo directory containing `config.toml`, make absolute ENV_VAR_NAME_3 = { value = "relative/path", relative = true } diff --git a/tests/test.rs b/tests/test.rs index 9ca2164..0e7f555 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -54,10 +54,10 @@ fn assert_reference_example(de: fn(&Path, ResolveOptions) -> Result) -> // [env] assert_eq!(config.env["ENV_VAR_NAME"].value, "value"); - assert_eq!(config.env["ENV_VAR_NAME"].force, false); + assert_eq!(config.env["ENV_VAR_NAME"].force, true); assert_eq!(config.env["ENV_VAR_NAME"].relative, false); assert_eq!(config.env["ENV_VAR_NAME_2"].value, "value"); - assert_eq!(config.env["ENV_VAR_NAME_2"].force, true); + assert_eq!(config.env["ENV_VAR_NAME_2"].force, false); assert_eq!(config.env["ENV_VAR_NAME_2"].relative, false); assert_eq!(config.env["ENV_VAR_NAME_3"].value, dir.join("relative/path")); assert_eq!(config.env["ENV_VAR_NAME_3"].force, false);