Skip to content

Commit

Permalink
Reset CLI colors after running tests
Browse files Browse the repository at this point in the history
Reviewed By: alunyov

Differential Revision: D50202566

fbshipit-source-id: 9362c34e4d7cf4d731f390c3522a9399aa16d034
  • Loading branch information
captbaritone authored and facebook-github-bot committed Oct 12, 2023
1 parent 6f49714 commit a094790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/crates/fixture-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ pub async fn test_fixture<T, U, V>(
let actual_result: Result<U, V>;
{
let _guard = LOCK.lock().await;
env::set_var("NO_COLOR", "1");
colored::control::set_override(false);
actual_result = transform(&fixture).await;
colored::control::unset_override();
}

let actual = match &actual_result {
Expand Down

0 comments on commit a094790

Please sign in to comment.