about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2023-04-04 19:25:57 +0200
committerLukas Wirth <lukastw97@gmail.com>2023-04-04 19:25:57 +0200
commit235c909b5b0ff0a42f3be32fa39afba9da04aca6 (patch)
tree6f2d962280a910f9d1ed82c6fe464f7369c34de4
parent25635adc00ebb34cdfcd52dbc5b7149e7f01906f (diff)
downloadrust-235c909b5b0ff0a42f3be32fa39afba9da04aca6.tar.gz
rust-235c909b5b0ff0a42f3be32fa39afba9da04aca6.zip
Also panic on status warnings
-rw-r--r--crates/rust-analyzer/tests/slow-tests/support.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/tests/slow-tests/support.rs b/crates/rust-analyzer/tests/slow-tests/support.rs
index d81926855eb..e5f0e57d2a0 100644
--- a/crates/rust-analyzer/tests/slow-tests/support.rs
+++ b/crates/rust-analyzer/tests/slow-tests/support.rs
@@ -255,8 +255,8 @@ impl Server {
                     .clone()
                     .extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
                     .unwrap();
-                if status.health == lsp_ext::Health::Error {
-                    panic!("server errored while loading workspace: {:?}", status.message);
+                if status.health != lsp_ext::Health::Ok {
+                    panic!("server errored/warned while loading workspace: {:?}", status.message);
                 }
                 status.quiescent
             }