From 5c3ee7b28e32f02d6ec0279d148020ba5f104fa4 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Wed, 26 Oct 2011 12:46:49 +0200 Subject: [PATCH] Fix RPC unittest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing βread_timeoutβ value. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- test/ganeti.rpc_unittest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ganeti.rpc_unittest.py b/test/ganeti.rpc_unittest.py index 657c01356..c434ad46e 100755 --- a/test/ganeti.rpc_unittest.py +++ b/test/ganeti.rpc_unittest.py @@ -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) -- GitLab