Defer nostr client connections

This commit is contained in:
thePR0M3TH3AN
2025-07-11 22:50:08 -04:00
parent babb4d49f0
commit 1e270c9ab1
2 changed files with 28 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ def _setup_client(tmpdir, fake_cls):
def test_initialize_client_pool_add_relays_used(tmp_path):
client = _setup_client(tmp_path, FakeAddRelaysClient)
fc = client.client
client.connect()
assert fc.added == [client.relays]
assert fc.connected is True
@@ -95,6 +96,7 @@ def test_initialize_client_pool_add_relays_used(tmp_path):
def test_initialize_client_pool_add_relay_fallback(tmp_path):
client = _setup_client(tmp_path, FakeAddRelayClient)
fc = client.client
client.connect()
assert fc.added == client.relays
assert fc.connected is True