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

Fix test for latest nightly. #1595

Merged
merged 1 commit into from
Nov 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ fn client_changing_workspace_lib_retains_diagnostics() {

// lib unit tests have compile errors
assert!(lib.diagnostics.iter().any(|m| m.message.contains("unused variable: `unused`")));
assert!(lib.diagnostics.iter().any(|m| m.message.contains("expected u32, found u64")));
assert!(lib.diagnostics.iter().any(|m| m.message.contains("expected `u32`, found `u64`")));
// bin depending on lib picks up type mismatch
assert!(bin.diagnostics[0].message.contains("mismatched types\n\nexpected u32, found u64"));
assert!(bin.diagnostics[0].message.contains("mismatched types\n\nexpected `u32`, found `u64`"));

rls.notify::<DidChangeTextDocument>(DidChangeTextDocumentParams {
content_changes: vec![TextDocumentContentChangeEvent {
Expand Down