Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22391 from lnicola/ignore-diagnostics-refresh
internal: Ignore workspace/diagnostic/refresh in slow tests
| -rw-r--r-- | crates/rust-analyzer/tests/slow-tests/flycheck.rs | 2 | ||||
| -rw-r--r-- | crates/rust-analyzer/tests/slow-tests/support.rs | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/crates/rust-analyzer/tests/slow-tests/flycheck.rs b/crates/rust-analyzer/tests/slow-tests/flycheck.rs index 386edb82f4..c6f1f81139 100644 --- a/crates/rust-analyzer/tests/slow-tests/flycheck.rs +++ b/crates/rust-analyzer/tests/slow-tests/flycheck.rs @@ -76,7 +76,6 @@ fn main() { } #[test] -#[ignore = "this test tends to stuck, FIXME: investigate that"] fn test_flycheck_diagnostic_with_override_command() { if skip_slow_tests() { return; @@ -113,7 +112,6 @@ fn main() {} } #[test] -#[ignore = "this test tends to stuck, FIXME: investigate that"] fn test_flycheck_diagnostics_with_override_command_cleared_after_fix() { if skip_slow_tests() { return; diff --git a/crates/rust-analyzer/tests/slow-tests/support.rs b/crates/rust-analyzer/tests/slow-tests/support.rs index 7390403673..e2304c3d71 100644 --- a/crates/rust-analyzer/tests/slow-tests/support.rs +++ b/crates/rust-analyzer/tests/slow-tests/support.rs @@ -372,9 +372,13 @@ impl Server { Message::Request(req) => { if req.method == "client/registerCapability" { let params = req.params.to_string(); - if ["workspace/didChangeWatchedFiles", "textDocument/didSave"] - .into_iter() - .any(|it| params.contains(it)) + if [ + "workspace/diagnostic/refresh", + "workspace/didChangeWatchedFiles", + "textDocument/didSave", + ] + .into_iter() + .any(|it| params.contains(it)) { continue; } |