dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.32k stars 358 forks source link

tests: prevent parallel env var access #1681

Closed th1000s closed 1 month ago

th1000s commented 2 months ago

env::set_var is not-yet-unsafe, and here tests fail because a var is already set by a second test while the first one is still running.

cargo test -- test_env with sufficient (auto detected) parallelism triggers this.

dandavison commented 1 month ago

Thanks!