Removed Result from ssl acceptor test

This commit is contained in:
Aldas 2020-12-16 02:59:27 +00:00 committed by GitHub
parent 747f6c0d1e
commit 68354288db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ async fn test_start() {
}
#[cfg(feature = "openssl")]
fn ssl_acceptor() -> std::io::Result<SslAcceptorBuilder> {
fn ssl_acceptor() -> SslAcceptorBuilder {
use open_ssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
// load ssl keys
let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap();
@ -74,7 +74,7 @@ fn ssl_acceptor() -> std::io::Result<SslAcceptorBuilder> {
builder
.set_certificate_chain_file("tests/cert.pem")
.unwrap();
Ok(builder)
builder
}
#[actix_rt::test]