[Telepathy-commits] [telepathy-salut/master] fix value of FT_STATE_NONE in tests

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Nov 21 03:46:40 PST 2008


---
 tests/twisted/avahi/test-receive-file.py |    3 +--
 tests/twisted/avahi/test-send-file.py    |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/twisted/avahi/test-receive-file.py b/tests/twisted/avahi/test-receive-file.py
index 5160118..a6ab080 100644
--- a/tests/twisted/avahi/test-receive-file.py
+++ b/tests/twisted/avahi/test-receive-file.py
@@ -23,7 +23,7 @@ HT_CONTACT = 1
 HT_CONTACT_LIST = 3
 TEXT_MESSAGE_TYPE_NORMAL = dbus.UInt32(0)
 
-FT_STATE_NONE = 1
+FT_STATE_NONE = 0
 FT_STATE_NOT_OFFERED = 1
 FT_STATE_ACCEPTED = 2
 FT_STATE_LOCAL_PENDING = 3
@@ -177,7 +177,6 @@ def test(q, bus, conn):
     while read < FILE_SIZE:
         data += s.recv(FILE_SIZE - read)
         read = len(data)
-    print "xxxxxxxxxx", len(data), FILE_SIZE
     assert data == FILE_DATA
 
     e = q.expect('dbus-signal', signal='TransferredBytesChanged')
diff --git a/tests/twisted/avahi/test-send-file.py b/tests/twisted/avahi/test-send-file.py
index d07d922..942bce1 100644
--- a/tests/twisted/avahi/test-send-file.py
+++ b/tests/twisted/avahi/test-send-file.py
@@ -21,7 +21,7 @@ HT_CONTACT = 1
 HT_CONTACT_LIST = 3
 TEXT_MESSAGE_TYPE_NORMAL = dbus.UInt32(0)
 
-FT_STATE_NONE = 1
+FT_STATE_NONE = 0
 FT_STATE_NOT_OFFERED = 1
 FT_STATE_ACCEPTED = 2
 FT_STATE_LOCAL_PENDING = 3
-- 
1.5.6.5




More information about the Telepathy-commits mailing list