added a test that making a stream should fail
This commit is contained in:
parent
31b628cb01
commit
6203112195
1 changed files with 6 additions and 0 deletions
|
@ -24,3 +24,9 @@ fn create_and_connect_to_listener() {
|
||||||
drop(listener);
|
drop(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[should_panic]
|
||||||
|
fn panic_no_listener() {
|
||||||
|
let _outgoing = std::net::TcpStream::connect("localhost:5000").unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue