From 6362eedfdc4907592d299bac2fe88cd936b62b94 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 16 Sep 2011 10:44:38 +0100 Subject: mctest: remove references to parameters This is cargo-culted from CM tests which actually have connection parameters. --- tests/twisted/mctest.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/twisted/mctest.py b/tests/twisted/mctest.py index 417cd4d3..0a1c7d73 100644 --- a/tests/twisted/mctest.py +++ b/tests/twisted/mctest.py @@ -33,13 +33,7 @@ from twisted.internet import reactor import dbus import dbus.service -def make_mc(bus, event_func, params=None): - default_params = { - } - - if params: - default_params.update(params) - +def make_mc(bus, event_func): mc = bus.get_object( cs.tp_name_prefix + '.MissionControl5', cs.tp_path_prefix + '/MissionControl5', @@ -77,8 +71,8 @@ def wait_for_name(queue, bus, name): queue.expect('dbus-signal', signal='NameOwnerChanged', predicate=lambda e: e.args[0] == name and e.args[2]) -def wait_for_mc(queue, bus, params): - mc = make_mc(bus, queue.append, params) +def wait_for_mc(queue, bus): + mc = make_mc(bus, queue.append) wait_for_name(queue, bus, cs.AM) wait_for_name(queue, bus, cs.CD) return mc @@ -101,7 +95,7 @@ def exec_test_deferred (fun, params, protocol=None, timeout=None, if preload_mc: try: - mc = wait_for_mc(queue, bus, params) + mc = wait_for_mc(queue, bus) except Exception, e: import traceback traceback.print_exc() -- cgit v1.2.3