tests: test_rpc: Create connection for the current thread

Both context.xmlclient and context.xmlclient_<id> need to be created
in order to successfully call the Command.forward method.

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Tomas Babej committed 2015-07-22 11:13:44 +02:00
1 parent 8eb26e9230
commit d71899696a
1 file changed
+3
+3
View File
@@ -229,6 +229,9 @@ class test_xmlclient(PluginTester):
),
)
# Create connection for the current thread
setattr(context, o.id, Connection(conn, lambda: None))
context.xmlclient = Connection(conn, lambda: None)
# Test with a successful return value: