()
| 280 | |
| 281 | #[test] |
| 282 | fn revocation_check_thread_safe() { |
| 283 | let store = Arc::new(RwLock::new(CrlStore::new())); |
| 284 | store.write().unwrap().revoked_serials.insert("AA".into()); |
| 285 | |
| 286 | assert!(check_revocation(&store, "AA")); |
| 287 | assert!(!check_revocation(&store, "BB")); |
| 288 | } |
| 289 | } |