From c9eabff637d3694f3f4c3898da91524e9b6a2703 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 17 Nov 2022 16:26:57 +0800 Subject: [PATCH] rename check_key to load_cert_and_assert_eq --- client/cli/src/params/webrtc_certificate_params.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cli/src/params/webrtc_certificate_params.rs b/client/cli/src/params/webrtc_certificate_params.rs index c16c4a0d8d414..470898a20a3dd 100644 --- a/client/cli/src/params/webrtc_certificate_params.rs +++ b/client/cli/src/params/webrtc_certificate_params.rs @@ -64,7 +64,7 @@ mod tests { #[test] fn test_webrtc_certificate_file() { - fn check_key(file: PathBuf, cert: &WebRTCCertificate) { + fn load_cert_and_assert_eq(file: PathBuf, cert: &WebRTCCertificate) { let params = WebRTCCertificateParams { webrtc_certificate_file: Some(file) }; let loaded_cert = params @@ -82,6 +82,6 @@ mod tests { let cert = WebRTCCertificate::generate(&mut thread_rng()).expect("Generates certificate"); fs::write(&file, cert.serialize_pem().as_bytes()).expect("Writes certificate"); - check_key(file.clone(), &cert); + load_cert_and_assert_eq(file.clone(), &cert); } }