Private
Public Access
1
0

fix(ci): add crl_path to test TlsConfig and fix clippy field_reassign_with_default

This commit is contained in:
2026-06-05 14:02:53 -05:00
parent fe9bdce3c1
commit cfdb874062
2 changed files with 10 additions and 3 deletions

View File

@ -401,9 +401,15 @@ mod tests {
let initial = shared.load(); let initial = shared.load();
assert_eq!(initial.status, CrlStatus::Missing); assert_eq!(initial.status, CrlStatus::Missing);
let mut new_state = CrlState::default(); let new_state = CrlState {
new_state.status = CrlStatus::Valid; status: CrlStatus::Valid,
new_state.revoked_serials.insert("abc".to_string()); revoked_serials: {
let mut set = HashSet::new();
set.insert("abc".to_string());
set
},
..Default::default()
};
shared.store(Arc::new(new_state)); shared.store(Arc::new(new_state));
let updated = shared.load(); let updated = shared.load();

View File

@ -78,6 +78,7 @@ fn build_tls_config(cert_dir: &std::path::Path) -> TlsConfig {
.to_string_lossy() .to_string_lossy()
.to_string(), .to_string(),
min_tls_version: "1.3".to_string(), min_tls_version: "1.3".to_string(),
crl_path: String::new(), // No CRL in E2E tests
} }
} }