Skip to content

Commit bf59a39

Browse files
committed
Fix: catch another missed wait in testing.
1 parent 492e509 commit bf59a39

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

server/tests/overall_1.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,23 @@ async fn test_server_core(
405405
codechat_server.send_result(client_id, None).await.unwrap();
406406
client_id += MESSAGE_ID_INCREMENT;
407407

408+
// Get the resulting cursor position update after the edit.
409+
let msg = codechat_server.get_message_timeout(TIMEOUT).await.unwrap();
410+
assert_eq!(
411+
msg,
412+
EditorMessage {
413+
id: client_id,
414+
message: EditorMessageContents::Update(UpdateMessageContents {
415+
file_path: md_path_str.clone(),
416+
contents: None,
417+
cursor_position: None,
418+
scroll_position: None
419+
})
420+
}
421+
);
422+
codechat_server.send_result(client_id, None).await.unwrap();
423+
client_id += MESSAGE_ID_INCREMENT;
424+
408425
// Perform an IDE edit.
409426
version = 5.0;
410427
let ide_id = codechat_server

0 commit comments

Comments
 (0)