手动执行全量同步
This commit is contained in:
@@ -31,7 +31,9 @@ fn discover_root_ca_instance_from_tal_url_succeeds_with_apnic_fixtures() {
|
||||
.map
|
||||
.insert(tal_url.to_string(), Ok(tal_bytes.clone()));
|
||||
for u in &tal.ta_uris {
|
||||
fetcher.map.insert(u.as_str().to_string(), Ok(ta_der.clone()));
|
||||
fetcher
|
||||
.map
|
||||
.insert(u.as_str().to_string(), Ok(ta_der.clone()));
|
||||
}
|
||||
|
||||
let out = discover_root_ca_instance_from_tal_url(&fetcher, tal_url).expect("discover root");
|
||||
@@ -49,9 +51,7 @@ fn discover_root_ca_instance_from_tal_url_returns_ta_fetch_error_when_all_candid
|
||||
let tal = Tal::decode_bytes(&tal_bytes).expect("decode tal fixture");
|
||||
|
||||
let mut fetcher = MapFetcher::default();
|
||||
fetcher
|
||||
.map
|
||||
.insert(tal_url.to_string(), Ok(tal_bytes));
|
||||
fetcher.map.insert(tal_url.to_string(), Ok(tal_bytes));
|
||||
for u in &tal.ta_uris {
|
||||
fetcher.map.insert(
|
||||
u.as_str().to_string(),
|
||||
@@ -67,4 +67,3 @@ fn discover_root_ca_instance_from_tal_url_returns_ta_fetch_error_when_all_candid
|
||||
other => panic!("unexpected error: {other}"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user