Flkay quic test in check_block_multiple_connections (#31871)
Flkay quic test -- put the test code in else condition
This commit is contained in:
parent
8203c6e85a
commit
0426a2d96e
|
@ -1241,8 +1241,7 @@ pub mod test {
|
||||||
// the stream -- expect it.
|
// the stream -- expect it.
|
||||||
let s2 = s2.err().unwrap();
|
let s2 = s2.err().unwrap();
|
||||||
assert!(matches!(s2, quinn::ConnectionError::ApplicationClosed(_)));
|
assert!(matches!(s2, quinn::ConnectionError::ApplicationClosed(_)));
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
let mut s2 = s2.unwrap();
|
let mut s2 = s2.unwrap();
|
||||||
s1.write_all(&[0u8]).await.unwrap();
|
s1.write_all(&[0u8]).await.unwrap();
|
||||||
s1.finish().await.unwrap();
|
s1.finish().await.unwrap();
|
||||||
|
@ -1257,6 +1256,7 @@ pub mod test {
|
||||||
.await
|
.await
|
||||||
.expect_err("shouldn't be able to open 2 connections");
|
.expect_err("shouldn't be able to open 2 connections");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub async fn check_multiple_streams(
|
pub async fn check_multiple_streams(
|
||||||
receiver: Receiver<PacketBatch>,
|
receiver: Receiver<PacketBatch>,
|
||||||
|
|
Loading…
Reference in New Issue