Browse Source

fix test_configure for new jsonrpc

master
AdamISZ 8 years ago
parent
commit
d08438900e
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 4
      jmclient/test/test_configure.py

4
jmclient/test/test_configure.py

@ -27,9 +27,9 @@ def test_load_config():
jm_single().config_location = "joinmarket.cfg"
#TODO hack: load from default implies a connection error unless
#actually mainnet, but tests cannot; for now catch the connection error
with pytest.raises(JsonRpcConnectionError) as e_info:
with pytest.raises(Exception) as e_info:
load_program_config(config_path=ncp, bs="regtest")
assert str(e_info.value) in ["authentication for JSON-RPC failed",
assert str(e_info.value) in ["[Errno 111] Connection refused", "authentication for JSON-RPC failed",
"JSON-RPC connection failed. Err:error(111, 'Connection refused')"]
os.remove("dummydirforconfig/joinmarket.cfg")
os.removedirs("dummydirforconfig")

Loading…
Cancel
Save