Skip to content

Commit 08a5f1e

Browse files
committed
Skip the test when testing locally
1 parent 040f37a commit 08a5f1e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/ide-diagnostics/src/handlers/missing_match_arms.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ mod tests {
2323
},
2424
DiagnosticsConfig,
2525
};
26+
use test_utils::skip_slow_tests;
2627

2728
#[track_caller]
2829
fn check_diagnostics_no_bails(ra_fixture: &str) {
@@ -1006,9 +1007,12 @@ fn f() {
10061007

10071008
#[test]
10081009
fn exponential_match() {
1010+
if skip_slow_tests() {
1011+
return;
1012+
}
10091013
// Constructs a match where match checking takes exponential time. Ensures we bail early.
10101014
use std::fmt::Write;
1011-
let struct_arity = 30;
1015+
let struct_arity = 50;
10121016
let mut code = String::new();
10131017
write!(code, "struct BigStruct {{").unwrap();
10141018
for i in 0..struct_arity {

0 commit comments

Comments
 (0)