Skip to content

Commit

Permalink
added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatychev committed Aug 9, 2024
1 parent 03913b9 commit 55bb186
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration_tests/tests/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ impl test_server::Test for Svc {
#[tokio::test]
async fn connect_returns_err() {
let res = TestClient::connect("http://thisdoesntexist").await;
dbg!(&res);

assert!(res.is_err());
}

#[tokio::test]
async fn connect_handles_tls() {
TestClient::connect("https://example.com").await.unwrap();
}

#[tokio::test]
async fn connect_returns_err_via_call_after_connected() {
let (tx, rx) = oneshot::channel();
Expand Down

0 comments on commit 55bb186

Please sign in to comment.