forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make metrics tests independent of RUST_LOG env var (solana-labs#16710)
Previously, running the tests with RUST_LOG=none would fail, because the env logger would set its filter level to reject all log messages, and incrementing a counter only happens if the global logger has at least the specified log level. Having the tests behave differently when RUST_LOG is set is surprising, they should be self-contained. Nix' buildRustPackage sets RUST_LOG="" to make the build logs less verbose. I have trouble packaging Solana for Nix because of this, and I believe making the tests independent of the environment is a good solution for this.
- Loading branch information
Showing
1 changed file
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters