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); } }