[tor-commits] [bridgedb/develop] Add timeout to SMTPAutoresponder unittests.

isis at torproject.org isis at torproject.org
Fri Jun 6 20:40:38 UTC 2014


commit d5ca5f67d8e78ae0134985f7a0e6f36b6a8be7f0
Author: Isis Lovecruft <isis at torproject.org>
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)





More information about the tor-commits mailing list