From 4d683b06248837ce2ad06c84f41d69c57aa16d01 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 15 Nov 2021 22:59:20 +0000 Subject: [PATCH] fix feature guard in tests --- actix-tls/tests/accept-openssl.rs | 7 ++++++- actix-tls/tests/accept-rustls.rs | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/actix-tls/tests/accept-openssl.rs b/actix-tls/tests/accept-openssl.rs index 72b90625..3d195b04 100644 --- a/actix-tls/tests/accept-openssl.rs +++ b/actix-tls/tests/accept-openssl.rs @@ -1,6 +1,11 @@ //! Use Rustls connector to test OpenSSL acceptor. -#![cfg(all(feature = "accept", feature = "rustls", feature = "openssl"))] +#![cfg(all( + feature = "accept", + feature = "connect", + feature = "rustls", + feature = "openssl" +))] use std::{convert::TryFrom, io::Write, sync::Arc}; diff --git a/actix-tls/tests/accept-rustls.rs b/actix-tls/tests/accept-rustls.rs index a96da5a3..a083ebba 100644 --- a/actix-tls/tests/accept-rustls.rs +++ b/actix-tls/tests/accept-rustls.rs @@ -1,6 +1,11 @@ //! Use OpenSSL connector to test Rustls acceptor. -#![cfg(all(feature = "accept", feature = "rustls", feature = "openssl"))] +#![cfg(all( + feature = "accept", + feature = "connect", + feature = "rustls", + feature = "openssl" +))] use std::io::{BufReader, Write};