diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-10-06 13:42:11 +0800 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-10-08 11:48:19 +0800 |
commit | 62c304ea481d474bc87d950e21907b8b05134fe7 (patch) | |
tree | 43c44a1d77be2460087273edb2e334ee8220d676 /test | |
parent | f504a1402afd0760e9d348ecc8bad0094aa7d705 (diff) | |
download | bitcoin-62c304ea481d474bc87d950e21907b8b05134fe7.tar.xz |
tests: Allow closed http server in assert_start_raises_init_error
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/test_framework/test_node.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index 7ab7fcfcb4..c05988c661 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -187,7 +187,9 @@ class TestNode(): if e.errno != errno.ECONNREFUSED: # Port not yet open? raise # unknown IO error except JSONRPCException as e: # Initialization phase - if e.error['code'] != -28: # RPC in warmup? + # -28 RPC in warmup + # -342 Service unavailable, RPC server started but is shutting down due to error + if e.error['code'] != -28 and e.error['code'] != -342: raise # unknown JSON RPC exception except ValueError as e: # cookie file not found and no rpcuser or rpcassword. bitcoind still starting if "No RPC credentials" not in str(e): |