Skip to content

Commit

Permalink
Update test.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Sep 2, 2023
1 parent a7c174a commit 7fd093a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/els/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ impl DummyClient {
loop {
let mut buf = String::new();
self.stdout_buffer.read_to_string(&mut buf)?;
while !buf.ends_with('}') {
safe_yield();
self.stdout_buffer.read_to_string(&mut buf)?;
}
for msg in parse_msgs(&buf) {
if msg.get("method").is_some_and(|_| msg.get("id").is_some()) {
self.handle_server_request(&msg);
Expand Down

0 comments on commit 7fd093a

Please sign in to comment.