From d08438900e56a56782c27efc53cb536c96f1e46b Mon Sep 17 00:00:00 2001 From: AdamISZ Date: Sun, 13 May 2018 15:24:20 +0200 Subject: [PATCH] fix test_configure for new jsonrpc --- jmclient/test/test_configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jmclient/test/test_configure.py b/jmclient/test/test_configure.py index 02749ae..1136ad6 100644 --- a/jmclient/test/test_configure.py +++ b/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")