mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(test): update client count resilience test to access unreachableRelays via connectionManager
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
35d09e2379
commit
f2002b66c2
1 file changed
+2
-2
@@ -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");
|
||||
});
|
||||
Reference in new issue
Block a user