Skip to content

Commit 230a3bc

Browse files
committed
Fixing integration tests
Signed-off-by: Dawid Nowak <[email protected]>
1 parent 6eb5d01 commit 230a3bc

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

gateway-api/src/lib.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)