mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-08 10:56:13 -08:00
style: format noop waker mpsc tests
This commit is contained in:
1 parent
cb35c17503
commit
3de3fabcbc
1 file changed
+4
-2
@@ -303,7 +303,8 @@ mod tests {
|
||||
for i in 0..1000000 {
|
||||
tokio::time::sleep(tokio::time::Duration::from_millis(50)).await;
|
||||
let a = sink1
|
||||
.send_async(ZCPacket::new_with_payload("hello".as_bytes())).await;
|
||||
.send_async(ZCPacket::new_with_payload("hello".as_bytes()))
|
||||
.await;
|
||||
if a.is_err() {
|
||||
tracing::info!(?a, "t2 exit with err");
|
||||
break;
|
||||
@@ -322,7 +323,8 @@ mod tests {
|
||||
for i in 0..1000000 {
|
||||
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
|
||||
let a = sink2
|
||||
.send_async(ZCPacket::new_with_payload("hello2".as_bytes())).await;
|
||||
.send_async(ZCPacket::new_with_payload("hello2".as_bytes()))
|
||||
.await;
|
||||
if a.is_err() {
|
||||
tracing::info!(?a, "t3 exit with err");
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user