telepathy-gabble: gabbletest: don't use GetStatus()

Simon McVittie smcv at kemper.freedesktop.org
Wed Sep 25 07:07:43 PDT 2013


Module: telepathy-gabble
Branch: master
Commit: 8100e1fa16f033ecfcdf87cbda8a9b4da0c6f13e
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=8100e1fa16f033ecfcdf87cbda8a9b4da0c6f13e

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Sep 24 19:23:49 2013 +0100

gabbletest: don't use GetStatus()

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69767
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>

---

 tests/twisted/gabbletest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py
index e6b8baa..11cf3d2 100644
--- a/tests/twisted/gabbletest.py
+++ b/tests/twisted/gabbletest.py
@@ -682,7 +682,7 @@ def exec_test_deferred(fun, params, protocol=None, timeout=None,
             # Connection has already been disconnected and destroyed
             continue
         try:
-            if conn.GetStatus() == cs.CONN_STATUS_CONNECTED:
+            if conn.Properties.Get(cs.CONN, 'Status') == cs.CONN_STATUS_CONNECTED:
                 # Connection is connected, properly disconnect it
                 disconnect_conn(queue, conn, streams[i])
             else:



More information about the telepathy-commits mailing list