Skip to content

Commit

Permalink
Skip failing test
Browse files Browse the repository at this point in the history
The test only fails in environments in which the stdout is not a tty
  • Loading branch information
xswordsx committed Jun 21, 2020
1 parent fcc31a9 commit 49cf558
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ pub fn color_from_env() -> bool {
#[cfg(test)]
mod test {
use super::color_from_env;

#[test]
#[ignore]
fn color_on_clicolor() {
std::env::set_var("CLICOLOR", "1");
assert_eq!(color_from_env(), true);
Expand Down

0 comments on commit 49cf558

Please # to comment.