File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
ic_os/config/tool/src/guestos Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments