[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Add timeout to SMTPAutoresponder unittests.
commit d5ca5f67d8e78ae0134985f7a0e6f36b6a8be7f0
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Thu Jun 5 03:08:06 2014 +0000
Add timeout to SMTPAutoresponder unittests.
Some of them were taking a *really* long time on some hosts,
particularly these two:
- test_SMTPAutoresponder_reply_transport_invalid
- test_SMTPAutoresponder_reply_transport_valid
---
lib/bridgedb/test/test_email_autoresponder.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/bridgedb/test/test_email_autoresponder.py b/lib/bridgedb/test/test_email_autoresponder.py
index 880afa6..3cc802b 100644
--- a/lib/bridgedb/test/test_email_autoresponder.py
+++ b/lib/bridgedb/test/test_email_autoresponder.py
@@ -290,6 +290,8 @@ a ball of timey-wimey, wibbly-warbly... stuff."""
class SMTPAutoresponderTests(unittest.TestCase):
"""Unittests for :class:`bridgedb.email.autoresponder.SMTPAutoresponder`."""
+ timeout = 10
+
def setUp(self):
self.config = _createConfig()
self.context = _createMailServerContext(self.config)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits