diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bb5b7bd2..d088066f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,6 +7,9 @@ on: schedule: - cron: "43 6 * * 5" +env: + CLICOLOR_FORCE: 1 + jobs: test: strategy: diff --git a/src/style.rs b/src/style.rs index 9211cadb..3fbf8879 100644 --- a/src/style.rs +++ b/src/style.rs @@ -779,7 +779,8 @@ mod tests { use super::*; use crate::state::{AtomicPosition, ProgressState}; - use console::colors_enabled; + + use console::set_colors_enabled; use std::sync::Mutex; #[test] @@ -865,7 +866,6 @@ mod tests { #[test] fn test_expand_template_flags() { - use console::set_colors_enabled; set_colors_enabled(true); const WIDTH: u16 = 80; @@ -926,7 +926,7 @@ mod tests { #[test] fn wide_element_style() { - println!("colors_enabled: {}", colors_enabled()); + set_colors_enabled(true); const CHARS: &str = "=>-"; const WIDTH: u16 = 8;