fix test --no-default-features

This commit is contained in:
Martin Algesten
2019-09-14 08:41:59 +02:00
parent afa0cf9444
commit c2bb5a9592
2 changed files with 5 additions and 1 deletions

View File

@@ -1,7 +1,8 @@
use std::io::Read;
#[cfg(feature = "tls")]
#[test]
fn connection_close() {
fn tls_connection_close() {
let agent = ureq::Agent::default().build();
let resp = agent.get("https://example.com/404")
.set("Connection", "close")