Commit bf02d2d8 authored by iamwwc's avatar iamwwc
Browse files

add unit test

parent 0a44a12a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1413,3 +1413,10 @@ fn session_cache_size() {
    let ctx = ctx.build();
    assert_eq!(ctx.session_cache_size(), 1234);
}

#[test]
fn add_chain_cert_pem() {
    let ctx = SslContext::builder(SslMethod::tls()).unwrap().build();
    let mut ssl = Ssl::new(&ctx).unwrap();
    assert!(ssl.add_chain_cert_pem(CERT).is_ok());
}
 No newline at end of file