Skip to content

Commit ba88ae3

Browse files
authored
Merge pull request #19 from flub/fix-smoke
Fix smoke test
2 parents adfd0fb + d614c21 commit ba88ae3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/smoke.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ cfg_if! {
134134
use std::fs::File;
135135
use std::env;
136136
use std::sync::Once;
137+
use async_native_tls::TlsConnector;
137138

138139
fn contexts() -> (async_native_tls::TlsAcceptor, async_native_tls::TlsConnector) {
139140
let keys = openssl_keys();
@@ -143,8 +144,8 @@ cfg_if! {
143144

144145
let cert = t!(native_tls::Certificate::from_der(&keys.cert_der));
145146

146-
let mut client = TlsConnector::builder();
147-
t!(client.add_root_certificate(cert).build());
147+
let client = TlsConnector::new();
148+
let client = client.add_root_certificate(cert);
148149

149150
(t!(srv.build()).into(), client.into())
150151
}

0 commit comments

Comments
 (0)