Fix group_ids assertions in diagnostics test

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2021-11-15 14:18:58 -08:00
parent 0a704b8d67
commit 8b1b35913a

View file

@ -483,7 +483,7 @@ async fn test_diagnostics(mut cx: gpui::TestAppContext) {
&Diagnostic {
severity: DiagnosticSeverity::ERROR,
message: "undefined variable 'BB'".to_string(),
group_id: 0,
group_id: 1,
},
),
(
@ -491,7 +491,7 @@ async fn test_diagnostics(mut cx: gpui::TestAppContext) {
&Diagnostic {
severity: DiagnosticSeverity::ERROR,
message: "undefined variable 'CCC'".to_string(),
group_id: 0,
group_id: 2,
}
)
]
@ -548,7 +548,7 @@ async fn test_diagnostics(mut cx: gpui::TestAppContext) {
&Diagnostic {
severity: DiagnosticSeverity::WARNING,
message: "unreachable statement".to_string(),
group_id: 0,
group_id: 1,
}
),
(
@ -633,7 +633,7 @@ async fn test_diagnostics(mut cx: gpui::TestAppContext) {
&Diagnostic {
severity: DiagnosticSeverity::ERROR,
message: "undefined variable 'BB'".to_string(),
group_id: 0,
group_id: 1,
},
)
]