From d459735b8b5f21e21cbdc70b27fa0eaa7954dbaf Mon Sep 17 00:00:00 2001 From: yucheng Date: Thu, 24 Sep 2026 17:43:20 +0000 Subject: [PATCH] test(integration): fail the restart chaos cell on any failure before the peer outage Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/integration/configuration/test_tls_cipher_proxy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/configuration/test_tls_cipher_proxy.py b/tests/integration/configuration/test_tls_cipher_proxy.py index 1a492a4dfd6..aefe2074445 100644 --- a/tests/integration/configuration/test_tls_cipher_proxy.py +++ b/tests/integration/configuration/test_tls_cipher_proxy.py @@ -394,10 +394,15 @@ def test_proxy_burst_survives_peer_restart_with_every_outcome_recorded(cipher_pr lambda successes: successes >= 3, seconds=60, ) + stopped_at: Final = time.monotonic() tls_peers.gcm.stop() tls_peers.gcm.start() finished: Final = tuple(future.result(timeout=120) for future in futures) assert len(finished) == 30, finished + assert all(outcome.finished_at >= stopped_at for outcome in finished if outcome.status != 200), ( + stopped_at, + finished, + ) assert not any(outcome.status == 0 for outcome in finished), finished records: Final = tls_peers.gcm.received()[before:] assert all(record.cipher == PFS_GCM for record in records), records