Commit 5c3ee7b2 authored by Michael Hanselmann's avatar Michael Hanselmann Committed by Iustin Pop
Browse files

Fix RPC unittest



Add missing “read_timeout” value.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 5f828ce4
......@@ -296,7 +296,8 @@ class TestRpcProcessor(unittest.TestCase):
test_data))
proc = rpc._RpcProcessor(resolver, 18700)
body = serializer.DumpJson(test_data)
result = proc(["node19759"], "upload_file", body, _req_process_fn=http_proc)
result = proc(["node19759"], "upload_file", body, _req_process_fn=http_proc,
read_timeout=30)
self.assertEqual(result.keys(), ["node19759"])
lhresp = result["node19759"]
self.assertFalse(lhresp.offline)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment