Skip to content

Commit 083c8cd

Browse files
committed
rename, fix test
1 parent 71f23ea commit 083c8cd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

rs/ic_os/config/tool/src/guestos/generate_ic_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub fn get_best_interface_ipv6_address() -> Result<Ipv6Addr> {
207207
let mut delay = Duration::from_secs(1);
208208

209209
for attempt in 0..MAX_RETRIES {
210-
match get_router_advertisement_ipv6_address_helper(&interface) {
210+
match get_best_interface_ipv6_address_helper(&interface) {
211211
Ok(ipv6_addr) => {
212212
return Ok(ipv6_addr);
213213
}
@@ -228,7 +228,7 @@ pub fn get_best_interface_ipv6_address() -> Result<Ipv6Addr> {
228228
anyhow::bail!("Cannot determine an IPv6 address, aborting");
229229
}
230230

231-
fn get_router_advertisement_ipv6_address_helper(interface: &str) -> Result<Ipv6Addr> {
231+
fn get_best_interface_ipv6_address_helper(interface: &str) -> Result<Ipv6Addr> {
232232
let ifaces = get_if_addrs().context("Failed to get network interfaces")?;
233233
let ipv6_addr = ifaces
234234
.iter()

rs/orchestrator/src/registration.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,13 @@ mod tests {
13461346
.times(1)
13471347
.return_const(rotate_idkg_dealing_encryption_keys_result);
13481348
}
1349-
1349+
if let Some(sign_basic_result) = self.sign_basic_result {
1350+
key_handler
1351+
.expect_sign_basic()
1352+
.times(1)
1353+
.return_const(sign_basic_result);
1354+
}
1355+
13501356
let node_config = Config::new(temp_dir.keep());
13511357
let tls_config = mock_tls_config_called_times(self.expect_tls_config_call_times);
13521358

0 commit comments

Comments
 (0)