From f173147352978d3e7a0ab65ac620d7a480d1d593 Mon Sep 17 00:00:00 2001 From: epi Date: Tue, 6 Oct 2020 19:45:01 -0500 Subject: [PATCH] added client unit test --- src/client.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client.rs b/src/client.rs index 2039e5b..74ef04e 100644 --- a/src/client.rs +++ b/src/client.rs @@ -91,4 +91,11 @@ mod tests { let headers = HashMap::new(); let client = initialize(0, "stuff", true, false, &headers, Some("not a valid proxy")); } + + #[test] + fn client_with_good_proxy() { + let headers = HashMap::new(); + let proxy = "http://127.0.0.1:8080"; + let client = initialize(0, "stuff", true, true, &headers, Some(proxy.clone())); + } } \ No newline at end of file