Skip to content

Commit

Permalink
Skip the test when testing locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Mar 19, 2024
1 parent 040f37a commit 08a5f1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/ide-diagnostics/src/handlers/missing_match_arms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mod tests {
},
DiagnosticsConfig,
};
use test_utils::skip_slow_tests;

#[track_caller]
fn check_diagnostics_no_bails(ra_fixture: &str) {
Expand Down Expand Up @@ -1006,9 +1007,12 @@ fn f() {

#[test]
fn exponential_match() {
if skip_slow_tests() {
return;
}
// Constructs a match where match checking takes exponential time. Ensures we bail early.
use std::fmt::Write;
let struct_arity = 30;
let struct_arity = 50;
let mut code = String::new();
write!(code, "struct BigStruct {{").unwrap();
for i in 0..struct_arity {
Expand Down

0 comments on commit 08a5f1e

Please sign in to comment.