Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Sep 7, 2021
1 parent e151d36 commit 62bf2df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,12 +602,12 @@ mod tests {
ntex::rt::spawn(async move {
let _ = disp.await;
});
sleep(50).await;
sleep(Millis(50)).await;

client.write("test");
sleep(50).await;
sleep(Millis(50)).await;
client.write("test");
sleep(50).await;
sleep(Millis(50)).await;
condition.notify();

let buf = client.read().await.unwrap();
Expand Down Expand Up @@ -648,7 +648,7 @@ mod tests {
assert_eq!(buf, Bytes::from_static(b"test"));

st.close();
sleep(1200).await;
sleep(Millis(1200)).await;
assert!(client.is_server_dropped());
}

Expand Down

0 comments on commit 62bf2df

Please sign in to comment.