diff options
author | Aleksey Kladov <[email protected]> | 2021-05-04 16:21:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-04 16:21:36 +0100 |
commit | a1f42ef8adad95c12fb800aaaead30c4bc938559 (patch) | |
tree | 9eb475642526a5e4a3ad29e24175e4b9721a880a /crates | |
parent | a231da9d245dc280b082f2d8795f8e6bf16e409a (diff) |
internal: env var to toggle slow benches
Diffstat (limited to 'crates')
-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 411446b04..3dcbe397a 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}; | |||
21 | 21 | ||
22 | #[test] | 22 | #[test] |
23 | fn integrated_highlighting_benchmark() { | 23 | fn integrated_highlighting_benchmark() { |
24 | // Don't run slow benchmark by default | 24 | if std::env::var("RUN_SLOW_BENCHES").is_err() { |
25 | if true { | ||
26 | return; | 25 | return; |
27 | } | 26 | } |
28 | 27 | ||
@@ -76,8 +75,7 @@ fn integrated_highlighting_benchmark() { | |||
76 | 75 | ||
77 | #[test] | 76 | #[test] |
78 | fn integrated_completion_benchmark() { | 77 | fn integrated_completion_benchmark() { |
79 | // Don't run slow benchmark by default | 78 | if std::env::var("RUN_SLOW_BENCHES").is_err() { |
80 | if true { | ||
81 | return; | 79 | return; |
82 | } | 80 | } |
83 | 81 | ||