diff --git a/neqo-crypto/tests/init.rs b/neqo-crypto/tests/init.rs index ee7d808e29..38c6122549 100644 --- a/neqo-crypto/tests/init.rs +++ b/neqo-crypto/tests/init.rs @@ -30,17 +30,6 @@ fn init_nodb() { } } -#[cfg(nss_nodb)] -#[test] -fn init_twice_nodb() { - unsafe { - nss::NSS_NoDB_Init(std::ptr::null()); - assert_ne!(nss::NSS_IsInitialized(), 0); - } - // Now do it again - init_nodb(); -} - #[cfg(not(nss_nodb))] #[test] fn init_withdb() { @@ -50,27 +39,3 @@ fn init_withdb() { assert_ne!(nss::NSS_IsInitialized(), 0); } } - -#[cfg(not(nss_nodb))] -#[test] -fn init_twice_withdb() { - use std::{ffi::CString, path::PathBuf}; - - let empty = CString::new("").unwrap(); - let path: PathBuf = ::test_fixture::NSS_DB_PATH.into(); - assert!(path.is_dir()); - let pathstr = path.to_str().unwrap(); - let dircstr = CString::new(pathstr).unwrap(); - unsafe { - nss::NSS_Initialize( - dircstr.as_ptr(), - empty.as_ptr(), - empty.as_ptr(), - nss::SECMOD_DB.as_ptr().cast(), - nss::NSS_INIT_READONLY, - ); - assert_ne!(nss::NSS_IsInitialized(), 0); - } - // Now do it again - init_withdb(); -}