From d999d85779c1accf219d3016226a8feaa36c9e22 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Wed, 29 Aug 2012 18:29:54 +0100 Subject: [PATCH 01/21] make-valid test: make connection object paths distinct If these object paths are the same, the factory will use the same TpConnection (even though they are actually different connections) and dispatching will happen twice. Signed-off-by: Jonny Lamb Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 --- tests/twisted/account-manager/make-valid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/twisted/account-manager/make-valid.py b/tests/twisted/account-manager/make-valid.py index 457229d..0fd54cd 100644 --- a/tests/twisted/account-manager/make-valid.py +++ b/tests/twisted/account-manager/make-valid.py @@ -156,7 +156,7 @@ def test(q, bus, unused): interface=cs.tp_name_prefix + '.ConnectionManager', handled=False) - conn = SimulatedConnection(q, bus, 'fakecm', 'fakeprotocol', '_', + conn = SimulatedConnection(q, bus, 'fakecm', 'fakeprotocol', 'account1', 'myself', has_presence=True) q.dbus_return(e.message, conn.bus_name, conn.object_path, signature='so') @@ -208,7 +208,7 @@ def test(q, bus, unused): interface=cs.tp_name_prefix + '.ConnectionManager', handled=False) - conn = SimulatedConnection(q, bus, 'fakecm', 'fakeprotocol', '_', + conn = SimulatedConnection(q, bus, 'fakecm', 'fakeprotocol', 'account2', 'myself', has_presence=True) q.dbus_return(e.message, conn.bus_name, conn.object_path, signature='so') -- 1.7.10.4