mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
add assertion to test_definition ensuring no new language servers are created
This commit is contained in:
parent
37b75132b7
commit
38ca4aab31
1 changed files with 4 additions and 0 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue