mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Defer nostr client connections
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user