diff --git a/crates/agones/src/relay.rs b/crates/agones/src/relay.rs index c727bcfd0..f7b37f9d5 100644 --- a/crates/agones/src/relay.rs +++ b/crates/agones/src/relay.rs @@ -78,7 +78,7 @@ mod tests { let dp = DeleteParams::default(); let config_map = create_token_router_config(&config_maps).await; - let (relay_name, agent_name) = + let (relay_name, _agent_name) = agones_agent_deployment(&client, deployments.clone(), relay, agent, id).await; let relay_proxy_name = format!("quilkin-relay-proxy-{id}"); @@ -202,49 +202,49 @@ mod tests { } } - match deployments - .delete_collection(&dp, &kube::api::ListParams::default()) - .await - .expect("failed to delete deployments") - { - Either::Left(_) => { - let (pd, ad, rd) = tokio::try_join!( - timeout( - Duration::from_secs(30), - await_condition( - deployments.clone(), - &relay_proxy_name, - kube::runtime::conditions::is_deleted(&relay_proxy_name), - ) - ), - timeout( - Duration::from_secs(30), - await_condition( - deployments.clone(), - &agent_name, - kube::runtime::conditions::is_deleted(&agent_name), - ) - ), - timeout( - Duration::from_secs(30), - await_condition( - deployments.clone(), - &relay_name, - kube::runtime::conditions::is_deleted(&relay_name), - ) - ), - ) - .expect("failed to delete config_map within timeout"); - - pd.expect("failed to delete proxy"); - ad.expect("failed to delete agent"); - rd.expect("failed to delete relay"); - println!("...deployments deleted"); - } - Either::Right(_) => { - println!("deployments deleted"); - } - } + // match deployments + // .delete_collection(&dp, &kube::api::ListParams::default()) + // .await + // .expect("failed to delete deployments") + // { + // Either::Left(_) => { + // let (pd, ad, rd) = tokio::try_join!( + // timeout( + // SLOW, + // await_condition( + // deployments.clone(), + // &relay_proxy_name, + // kube::runtime::conditions::is_deleted(&relay_proxy_name), + // ) + // ), + // timeout( + // SLOW, + // await_condition( + // deployments.clone(), + // &agent_name, + // kube::runtime::conditions::is_deleted(&agent_name), + // ) + // ), + // timeout( + // SLOW, + // await_condition( + // deployments.clone(), + // &relay_name, + // kube::runtime::conditions::is_deleted(&relay_name), + // ) + // ), + // ) + // .expect("failed to delete config_map within timeout"); + + // pd.expect("failed to delete proxy"); + // ad.expect("failed to delete agent"); + // rd.expect("failed to delete relay"); + // println!("...deployments deleted"); + // } + // Either::Right(_) => { + // println!("deployments deleted"); + // } + // } } /// Deploys the Agent and Relay Server Deployments and Services