set RPC timeout to 10s

This commit is contained in:
stoffu
2020-05-12 12:52:59 +09:00
parent 1bbd0efe4f
commit 5d185fb859
+2 -1
View File
@@ -40,7 +40,8 @@ class JSONRPC(object):
res = requests.post(
url,
data=json.dumps(inputs),
headers={'content-type': 'application/json'})
headers={'content-type': 'application/json'},
timeout=10)
res = res.json()
assert 'error' not in res, res