added a test that making a stream should fail

This commit is contained in:
Nickiel12 2021-12-17 12:52:18 -08:00
parent 31b628cb01
commit 6203112195

View file

@ -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();
}