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 a8737f5
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() {
let res = TestClient::connect("https://example.com").await.unwrap();

Check failure on line 31 in tests/integration_tests/tests/connection.rs

View workflow job for this annotation

GitHub Actions / check (ubuntu-latest)

unused variable: `res`

Check failure on line 31 in tests/integration_tests/tests/connection.rs

View workflow job for this annotation

GitHub Actions / check (macOS-latest)

unused variable: `res`

Check failure on line 31 in tests/integration_tests/tests/connection.rs

View workflow job for this annotation

GitHub Actions / test (macOS-latest)

unused variable: `res`
}

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

0 comments on commit a8737f5

Please sign in to comment.