From 7779ed60753dff4b83219fe77d0e97b19d3b9fc4 Mon Sep 17 00:00:00 2001 From: Thomas O'Donnell Date: Fri, 2 Apr 2021 06:18:40 +0200 Subject: [PATCH] style(directory): Add comments for test settings (#2538) Have added some comments to explain the settings we are using in some tests. --- src/modules/directory.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/directory.rs b/src/modules/directory.rs index 35e1d6c2..9b3aea3e 100644 --- a/src/modules/directory.rs +++ b/src/modules/directory.rs @@ -683,6 +683,8 @@ mod tests { #[test] fn root_directory() { + // Note: We have disable the read_only settings here due to false positives when running + // the tests on Windows as a non-admin. let actual = ModuleRenderer::new("directory") .config(toml::toml! { [directory] @@ -1461,6 +1463,8 @@ mod tests { Color::Cyan.bold().paint("C:/Windows/System32") )); + // Note: We have disable the read_only settings here due to false positives when running + // the tests on Windows as a non-admin. let actual = ModuleRenderer::new("directory") .config(toml::toml! { [directory]