diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-04 15:31:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-04 15:31:10 +0000 |
| commit | 871bc1cd08a4167e0067b0fe6bf10bf5a7866500 (patch) | |
| tree | 3a266725e3f477a28398808cb0ef8bd799a192c3 | |
| parent | ff78f3a56d7080a233a3446d153566c54bf62a68 (diff) | |
| parent | a1f42ef8adad95c12fb800aaaead30c4bc938559 (diff) | |
| download | rust-871bc1cd08a4167e0067b0fe6bf10bf5a7866500.tar.gz rust-871bc1cd08a4167e0067b0fe6bf10bf5a7866500.zip | |
Merge #8725
8725: internal: env var to toggle slow benches r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
| -rw-r--r-- | crates/rust-analyzer/src/integrated_benchmarks.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/rust-analyzer/src/integrated_benchmarks.rs b/crates/rust-analyzer/src/integrated_benchmarks.rs index 411446b042b..3dcbe397ad8 100644 --- a/crates/rust-analyzer/src/integrated_benchmarks.rs +++ b/crates/rust-analyzer/src/integrated_benchmarks.rs @@ -21,8 +21,7 @@ use crate::cli::load_cargo::{load_workspace_at, LoadCargoConfig}; #[test] fn integrated_highlighting_benchmark() { - // Don't run slow benchmark by default - if true { + if std::env::var("RUN_SLOW_BENCHES").is_err() { return; } @@ -76,8 +75,7 @@ fn integrated_highlighting_benchmark() { #[test] fn integrated_completion_benchmark() { - // Don't run slow benchmark by default - if true { + if std::env::var("RUN_SLOW_BENCHES").is_err() { return; } |
