diff options
Diffstat (limited to 'cli/bench/lsp.rs')
-rw-r--r-- | cli/bench/lsp.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/bench/lsp.rs b/cli/bench/lsp.rs index da02db486..aea238441 100644 --- a/cli/bench/lsp.rs +++ b/cli/bench/lsp.rs @@ -268,6 +268,10 @@ fn bench_big_file_edits(deno_exe: &Path) -> Result<Duration, AnyError> { let (method, _): (String, Option<Value>) = client.read_notification()?; assert_eq!(method, "textDocument/publishDiagnostics"); + let (method, _): (String, Option<Value>) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); + let (method, _): (String, Option<Value>) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); let messages: Vec<FixtureMessage> = serde_json::from_slice(FIXTURE_DB_MESSAGES)?; @@ -326,6 +330,10 @@ fn bench_startup_shutdown(deno_exe: &Path) -> Result<Duration, AnyError> { let (method, _): (String, Option<Value>) = client.read_notification()?; assert_eq!(method, "textDocument/publishDiagnostics"); + let (method, _): (String, Option<Value>) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); + let (method, _): (String, Option<Value>) = client.read_notification()?; + assert_eq!(method, "textDocument/publishDiagnostics"); let (_, response_error): (Option<Value>, Option<LspResponseError>) = client.write_request("shutdown", json!(null))?; |