mirror of https://github.com/stjepang/smol
Test TCP connect failed case
This commit is contained in:
parent
f267ab1152
commit
5c720b0112
|
@ -35,6 +35,9 @@ fn tcp_connection() -> io::Result<()> {
|
|||
stream1.get_ref().local_addr()?
|
||||
);
|
||||
|
||||
// Now that the listener is closed, connect should fail.
|
||||
Async::<TcpStream>::connect(&addr).await.unwrap_err();
|
||||
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue