network-tests: don't try inactive SNs

Don't try using inactive SNs because they will often fail and give
timeouts.
This commit is contained in:
Jason Rhinelander 2022-04-25 20:16:28 -03:00
parent 238e799d63
commit 84277ef035
No known key found for this signature in database
GPG key ID: C4992CE7A88D4262

View file

@ -18,7 +18,7 @@ def omq():
@pytest.fixture(scope="module")
def sns(omq):
remote = omq.connect_remote(Address("curve://public.loki.foundation:38161/80adaead94db3b0402a6057869bdbe63204a28e93589fd95a035480ed6c03b45"))
x = omq.request_future(remote, "rpc.get_service_nodes").get()
x = omq.request_future(remote, "rpc.get_service_nodes", b'{"active_only": true}').get()
assert(len(x) == 2 and x[0] == b'200')
return json.loads(x[1])