@@ -704,8 +704,12 @@ async fn test_get_listen_ip() -> Result<(), anyhow::Error> {
704
704
. unwrap ( ) ;
705
705
ips. sort ( ) ;
706
706
707
- let mut listen_ips =
708
- get_listen_ips ( & authtoken_path ( None ) , & tn. network . clone ( ) . id . unwrap ( ) ) . await ?;
707
+ let mut listen_ips: Vec < String > =
708
+ get_listen_ips ( & authtoken_path ( None ) , & tn. network . clone ( ) . id . unwrap ( ) )
709
+ . await ?
710
+ . iter ( )
711
+ . map ( |x| parse_ip_from_cidr ( x. clone ( ) ) . to_string ( ) )
712
+ . collect ( ) ;
709
713
listen_ips. sort ( ) ;
710
714
711
715
assert_eq ! ( listen_ips, ips) ;
@@ -715,8 +719,12 @@ async fn test_get_listen_ip() -> Result<(), anyhow::Error> {
715
719
. await
716
720
. unwrap ( ) ;
717
721
718
- let mut listen_ips =
719
- get_listen_ips ( & authtoken_path ( None ) , & tn. network . clone ( ) . id . unwrap ( ) ) . await ?;
722
+ let mut listen_ips: Vec < String > =
723
+ get_listen_ips ( & authtoken_path ( None ) , & tn. network . clone ( ) . id . unwrap ( ) )
724
+ . await ?
725
+ . iter ( )
726
+ . map ( |x| parse_ip_from_cidr ( x. clone ( ) ) . to_string ( ) )
727
+ . collect ( ) ;
720
728
listen_ips. sort ( ) ;
721
729
722
730
let mut ips = vec ! [ tn. member( ) . clone( ) . rfc4193( ) ?. ip( ) . to_string( ) ] ;
@@ -731,8 +739,12 @@ async fn test_get_listen_ip() -> Result<(), anyhow::Error> {
731
739
. await
732
740
. unwrap ( ) ;
733
741
734
- let mut listen_ips =
735
- get_listen_ips ( & authtoken_path ( None ) , & tn. network . clone ( ) . id . unwrap ( ) ) . await ?;
742
+ let mut listen_ips: Vec < String > =
743
+ get_listen_ips ( & authtoken_path ( None ) , & tn. network . clone ( ) . id . unwrap ( ) )
744
+ . await ?
745
+ . iter ( )
746
+ . map ( |x| parse_ip_from_cidr ( x. clone ( ) ) . to_string ( ) )
747
+ . collect ( ) ;
736
748
listen_ips. sort ( ) ;
737
749
738
750
let mut ips = vec ! [ tn. member( ) . clone( ) . sixplane( ) ?. ip( ) . to_string( ) ] ;
0 commit comments