Skip to content

Commit

Permalink
Delete flakey part of test (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 authored Dec 21, 2023
1 parent 496a36d commit faf073c
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions tembo-operator/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2950,44 +2950,6 @@ mod test {
// two AppService Services, because two of the AppServices expose ports
assert!(service_items.len() == 2);

let query = r#"
SELECT sa.datname
, sa.usename
, sa.application_name
, states.state
, COALESCE(sa.count, 0) AS total
, COALESCE(sa.max_tx_secs, 0) AS max_tx_duration_seconds
FROM ( VALUES ('active')
, ('idle')
, ('idle in transaction')
, ('idle in transaction (aborted)')
, ('fastpath function call')
, ('disabled')
) AS states(state)
LEFT JOIN (
SELECT datname
, state
, usename
, COALESCE(application_name, '') AS application_name
, COUNT(*)
, COALESCE(EXTRACT (EPOCH FROM (max(now() - xact_start))), 0) AS max_tx_secs
FROM pg_catalog.pg_stat_activity
GROUP BY datname, state, usename, application_name
) sa ON states.state = sa.state
WHERE sa.usename IS NOT NULL
"#;

let state = State::default();
let context = state.create_context(client.clone());
wait_until_psql_contains(
context.clone(),
coredb_resource.clone(),
query.to_string(),
"tembo-apps".to_string(),
false,
)
.await;

let app_0 = deployment_items[0].clone();
let app_1 = deployment_items[1].clone();
let app_2 = deployment_items[2].clone();
Expand Down

0 comments on commit faf073c

Please sign in to comment.