From f2002b66c21d249d1e7d02c50b7ed0d78c349a6f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 14:17:44 +0000 Subject: [PATCH] fix(test): update client count resilience test to access unreachableRelays via connectionManager Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- tests/unit/client-count-resilience.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/client-count-resilience.test.mjs b/tests/unit/client-count-resilience.test.mjs index 41ccb679..5fc6f34a 100644 --- a/tests/unit/client-count-resilience.test.mjs +++ b/tests/unit/client-count-resilience.test.mjs @@ -39,7 +39,7 @@ test("NostrClient resilience to COUNT timeouts", async (t) => { client.getRequestTimeoutMs = () => 10; // 10ms timeout // Verify initial state - assert.strictEqual(client.unreachableRelays.has(relayUrl), false); + assert.strictEqual(client.connectionManager.unreachableRelays.has(relayUrl), false); // Trigger the count await client.countEventsAcrossRelays([{ kinds: [1] }]); @@ -51,7 +51,7 @@ test("NostrClient resilience to COUNT timeouts", async (t) => { // 3. countEventsAcrossRelays catches 'count-timeout' // 4. currently calls markRelayUnreachable - const isUnreachable = client.unreachableRelays.has(relayUrl); + const isUnreachable = client.connectionManager.unreachableRelays.has(relayUrl); assert.strictEqual(isUnreachable, false, "Relay should NOT be marked unreachable after count timeout"); });