Merge pull request #627 from element-hq/gaelg/fix-flaking-tests

Fix flaking tests
This commit is contained in:
Gaël Goinvic authored and GitHub committed 2025-07-25 16:01:10 +02:00
commit e44798e2f5
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
Fix flaking tests when checking upgrades.
+1 -1
View File
@@ -40,7 +40,7 @@ async def test_services_have_matching_labels(
label_selectors = {label: value for label, value in service.spec.selector.items()}
async for pod in kube_client.list(Pod, namespace=generated_data.ess_namespace, labels=label_selectors):
if pod.status and pod.status.phase not in ("Terminating", "Succeeded"):
if pod.status and pod.status.phase in ("Terminating", "Succeeded"):
continue # Skip terminating pods
assert service.metadata, f"Encountered a service without metadata : {service}"
assert pod.metadata, f"Encountered a pod without metadata : {pod}"