Skip to content

Commit

Permalink
fix: add 100ms wait to chat example to avoid dropped packet (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhellerstein authored Nov 27, 2023
1 parent 0539e2a commit bc35a5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hydroflow/examples/chat/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ fn test() {
"Client live!",
);

// wait 100ms so we don't drop a packet
let hundo_millis = std::time::Duration::from_millis(100);
std::thread::sleep(hundo_millis);

client1_input.write_all(b"Hello\n").unwrap();

wait_for_process_output(
Expand Down

0 comments on commit bc35a5a

Please sign in to comment.