[telepathy-gabble/master] Test that search channels release handles when closed

Will Thompson will.thompson at collabora.co.uk
Wed Aug 26 09:21:50 PDT 2009


---
 tests/twisted/search/unextended.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/search/unextended.py b/tests/twisted/search/unextended.py
index 14beba7..b30fcae 100644
--- a/tests/twisted/search/unextended.py
+++ b/tests/twisted/search/unextended.py
@@ -134,6 +134,11 @@ def test(q, bus, conn, stream):
         EventPattern('dbus-signal', signal='ChannelClosed'),
         )
 
+    # Check that now the channel has gone away the handles have become invalid.
+    for h in g_handle, f_handle:
+        call_async(q, conn, 'InspectHandles', cs.HT_CONTACT, [h])
+        q.expect('dbus-error', method='InspectHandles')
+
     conn.Disconnect()
     q.expect('dbus-signal', signal='StatusChanged', args=[2, 1])
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list