From 23a92ca31391a6bf9def3f279579c03be456e64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 9 Sep 2026 12:03:10 +0300 Subject: [PATCH] =?UTF-8?q?the=20Connection=20card's=20test=20stops=20raci?= =?UTF-8?q?ng=20the=20clock:=20the=20last-event=20and=20last-pass=20ages?= =?UTF-8?q?=20were=20asserted=20as=20exactly=200s,=20and=20any=20second=20?= =?UTF-8?q?boundary=20crossed=20between=20the=20health=20stamp=20and=20the?= =?UTF-8?q?=20page=20render=20flipped=20one=20to=201s=20=E2=80=94=20the=20?= =?UTF-8?q?test=20now=20asserts=20the=20honest=20contract,=20an=20age=20li?= =?UTF-8?q?ne=20that=20no=20longer=20reads=20never,=20whatever=20number=20?= =?UTF-8?q?the=20moment=20produced;=20eight=20consecutive=20runs=20green?= =?UTF-8?q?=20where=20it=20failed=20every=20fourth=20before?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/in-web/tests/http.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/in-web/tests/http.rs b/crates/in-web/tests/http.rs index b8d2b21..dc6513f 100644 --- a/crates/in-web/tests/http.rs +++ b/crates/in-web/tests/http.rs @@ -5325,8 +5325,16 @@ async fn connection_card_shows_issuer_client_id_and_stream_state() { let body = page.text(); assert!(body.contains("Connected"), "no green wording: {body}"); assert!(body.contains("status-dot-done"), "no green dot: {body}"); - assert!(body.contains("Last event · 0s"), "no event age: {body}"); - assert!(body.contains("Last pass · 0s"), "no pass age: {body}"); + // An age, not never — the number itself races the second boundary + // between the stamp and this render, so it is not asserted. + assert!( + body.contains("Last event · ") && !body.contains("Last event · never"), + "no event age: {body}" + ); + assert!( + body.contains("Last pass · ") && !body.contains("Last pass · never"), + "no pass age: {body}" + ); // The stream ends: amber again, no event line retraction needed — the // last event stays but the wording names the truth. app.health.reconnecting();