Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 362fa39

Browse files
committed
fix expected diagnostic for crate name typo
1 parent ffa01dc commit 362fa39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,9 @@ fn client_dependency_typo_and_fix() {
679679
let diag = rls.wait_for_diagnostics();
680680
assert_eq!(diag.diagnostics.len(), 1);
681681
assert_eq!(diag.diagnostics[0].severity, Some(DiagnosticSeverity::Error));
682-
assert!(diag.diagnostics[0].message.contains("no matching package named `auto-cfg`"));
682+
assert!(diag.diagnostics[0]
683+
.message
684+
.contains("no matching package found\nsearched package name: `auto-cfg`"));
683685

684686
let change_manifest = |contents: &str| {
685687
std::fs::write(root_path.join("Cargo.toml"), contents).unwrap();

0 commit comments

Comments
 (0)