Adjust diagnostic transformation test to not wait for two buffer notifications
This commit is contained in:
parent
02b95ef320
commit
2db57b5139
5 changed files with 22 additions and 5 deletions
|
@ -849,10 +849,12 @@ impl FakeLanguageServer {
|
|||
T: request::Request,
|
||||
T::Result: 'static + Send,
|
||||
{
|
||||
self.server.executor.start_waiting();
|
||||
self.server.request::<T>(params).await
|
||||
}
|
||||
|
||||
pub async fn receive_notification<T: notification::Notification>(&mut self) -> T::Params {
|
||||
self.server.executor.start_waiting();
|
||||
self.try_receive_notification::<T>().await.unwrap()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue