From 6159a595347123a5d529c6955cbdb1194bff40d3 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 12 Dec 2023 14:59:51 +0100 Subject: [PATCH] Fix assertions now that we use different hash functions --- crates/copilot/src/copilot.rs | 12 ++++++------ crates/gpui2/src/style.rs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/copilot/src/copilot.rs b/crates/copilot/src/copilot.rs index 0c6f7e3907..698e118fc3 100644 --- a/crates/copilot/src/copilot.rs +++ b/crates/copilot/src/copilot.rs @@ -1093,14 +1093,14 @@ mod tests { lsp.receive_notification::() .await, lsp::DidCloseTextDocumentParams { - text_document: lsp::TextDocumentIdentifier::new(buffer_2_uri.clone()), + text_document: lsp::TextDocumentIdentifier::new(buffer_1_uri.clone()), } ); assert_eq!( lsp.receive_notification::() .await, lsp::DidCloseTextDocumentParams { - text_document: lsp::TextDocumentIdentifier::new(buffer_1_uri.clone()), + text_document: lsp::TextDocumentIdentifier::new(buffer_2_uri.clone()), } ); @@ -1119,10 +1119,10 @@ mod tests { .await, lsp::DidOpenTextDocumentParams { text_document: lsp::TextDocumentItem::new( - buffer_2_uri.clone(), + buffer_1_uri.clone(), "plaintext".into(), 0, - "Goodbye".into() + "Hello world".into() ), } ); @@ -1131,10 +1131,10 @@ mod tests { .await, lsp::DidOpenTextDocumentParams { text_document: lsp::TextDocumentItem::new( - buffer_1_uri.clone(), + buffer_2_uri.clone(), "plaintext".into(), 0, - "Hello world".into() + "Goodbye".into() ), } ); diff --git a/crates/gpui2/src/style.rs b/crates/gpui2/src/style.rs index 5c511b41a4..04f247d076 100644 --- a/crates/gpui2/src/style.rs +++ b/crates/gpui2/src/style.rs @@ -608,14 +608,14 @@ mod tests { ( 1..2, HighlightStyle { - color: Some(blue()), + color: Some(green()), ..Default::default() } ), ( 2..3, HighlightStyle { - color: Some(blue()), + color: Some(green()), font_style: Some(FontStyle::Italic), ..Default::default() }