Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
rename check_key to load_cert_and_assert_eq
Browse files Browse the repository at this point in the history
  • Loading branch information
melekes committed Nov 17, 2022
1 parent 8fb4ae2 commit c9eabff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/cli/src/params/webrtc_certificate_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
}

0 comments on commit c9eabff

Please sign in to comment.