summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-07-29 23:15:49 -0400
committerLance Stout <lancestout@gmail.com>2010-07-29 23:15:49 -0400
commita96a046e27289d733eabe0cb1b902e679da5d4ca (patch)
treed1a4e163cef5bc21c2f3d20e9b2cd9e6ff3a147b
parent60a183b011f8c0ee5a3c1840075a43addf33fc4f (diff)
downloadslixmpp-a96a046e27289d733eabe0cb1b902e679da5d4ca.tar.gz
slixmpp-a96a046e27289d733eabe0cb1b902e679da5d4ca.tar.bz2
slixmpp-a96a046e27289d733eabe0cb1b902e679da5d4ca.tar.xz
slixmpp-a96a046e27289d733eabe0cb1b902e679da5d4ca.zip
Remove extra debugging lines and speed up stream testing in SleekTest.
-rw-r--r--tests/sleektest.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/sleektest.py b/tests/sleektest.py
index f89966ec..71ff105d 100644
--- a/tests/sleektest.py
+++ b/tests/sleektest.py
@@ -128,10 +128,7 @@ class SleekTest(unittest.TestCase):
if xml.attrib.get('type', None) is None:
xml.attrib['type'] = 'normal'
msg2['type'] = msg2['type']
- debug += ">>>>Given Stanza:\n%s\n" % ET.tostring(msg.xml)
debug += "XML String:\n%s\n" % ET.tostring(xml)
- debug += ">>>>Constructed Stanza:\n%s\n" % ET.tostring(msg2.xml)
-
values = msg2.getStanzaValues()
msg3 = self.Message()
@@ -234,25 +231,25 @@ class SleekTest(unittest.TestCase):
self.xmpp.process(threaded=True)
if skip:
# Clear startup stanzas
- self.xmpp.socket.nextSent(timeout=0.1)
+ self.xmpp.socket.nextSent(timeout=0.01)
def streamRecv(self, data):
data = str(data)
self.xmpp.socket.recvData(data)
- def streamSendMessage(self, data, use_values=True, timeout=.5):
+ def streamSendMessage(self, data, use_values=True, timeout=.1):
if isinstance(data, str):
data = self.Message(xml=ET.fromstring(data))
- sent = self.xmpp.socket.nextSent(timeout=1)
+ sent = self.xmpp.socket.nextSent(timeout)
self.checkMessage(data, sent, use_values)
- def streamSendIq(self, data, use_values=True, timeout=.5):
+ def streamSendIq(self, data, use_values=True, timeout=.1):
if isinstance(data, str):
data = self.Iq(xml=ET.fromstring(data))
sent = self.xmpp.socket.nextSent(timeout)
self.checkIq(data, sent, use_values)
- def streamSendPresence(self, data, use_values=True, timeout=.5):
+ def streamSendPresence(self, data, use_values=True, timeout=.1):
if isinstance(data, str):
data = self.Presence(xml=ET.fromstring(data))
sent = self.xmpp.socket.nextSent(timeout)