add assertion to test_definition ensuring no new language servers are created

This commit is contained in:
Keith Simmons 2022-06-30 17:24:32 -07:00
parent 37b75132b7
commit 38ca4aab31

View file

@ -7743,6 +7743,10 @@ mod tests {
.await
.unwrap();
// Assert no new language server started
cx.foreground().run_until_parked();
assert!(fake_servers.try_next().is_err());
assert_eq!(definitions.len(), 1);
let definition = definitions.pop().unwrap();
cx.update(|cx| {