@@ -27,6 +27,7 @@ mod tests {
2727 use tower:: ServiceBuilder ;
2828 use uuid:: Uuid ;
2929
30+ use crate :: common:: GatewayAddress ;
3031 use crate :: {
3132 apis:: standard:: constants:: {
3233 GatewayConditionReason , GatewayConditionType , ListenerConditionReason ,
@@ -88,6 +89,7 @@ mod tests {
8889 assert ! ( gw. metadata. uid. is_some( ) ) ;
8990
9091 let gw_status = GatewayStatus {
92+ addresses : Some ( vec ! [ GatewayAddress :: default ( ) ] ) ,
9193 listeners : Some ( vec ! [ GatewayStatusListeners {
9294 name: "tcp" . into( ) ,
9395 attached_routes: 0 ,
@@ -109,7 +111,6 @@ mod tests {
109111 status: "True" . to_string( ) ,
110112 type_: GatewayConditionType :: Programmed . to_string( ) ,
111113 } ] ) ,
112- ..Default :: default ( )
113114 } ;
114115
115116 gw = Api :: default_namespaced ( client)
@@ -138,13 +139,13 @@ mod tests {
138139 name : String ,
139140 }
140141
141- impl Drop for Cluster {
142- fn drop ( & mut self ) {
143- if let Err ( err) = delete_kind_cluster ( & self . name ) {
144- panic ! ( "failed to cleanup kind cluster {}: {}" , self . name, err)
145- }
146- }
147- }
142+ // impl Drop for Cluster {
143+ // fn drop(&mut self) {
144+ // if let Err(err) = delete_kind_cluster(&self.name) {
145+ // panic!("failed to cleanup kind cluster {}: {}", self.name, err)
146+ // }
147+ // }
148+ // }
148149
149150 async fn get_client ( ) -> Result < ( kube:: Client , Cluster ) , Error > {
150151 let cluster = create_kind_cluster ( ) ?;
0 commit comments