From 80c9e7aebb7a414a2343c93a65a9cda47435f8d8 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 11 Sep 2013 12:29:33 +0100 Subject: [PATCH 1/3] client-types test: avoid a race --- tests/twisted/client-types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/twisted/client-types.py b/tests/twisted/client-types.py index 2eaeebe..a1c698b 100644 --- a/tests/twisted/client-types.py +++ b/tests/twisted/client-types.py @@ -61,6 +61,10 @@ def contact_online(q, conn, stream, contact, identities, if initial: event = q.expect('dbus-signal', signal='ClientTypesUpdated') assertEquals([handle, types], event.args) + else: + # so we can assert that asking for the handle's client types + # will give an up-to-date answer + sync_stream(q, stream) def test(q, bus, conn, stream): # check all these types appear as they should -- 1.8.4.rc3