[svn] commit: r3113 - /branches/trac349/src/lib/python/isc/config/tests/ccsession_test.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Oct 4 18:11:52 UTC 2010
Author: vorner
Date: Mon Oct 4 18:11:52 2010
New Revision: 3113
Log:
Check it blocks forever even with timeout
Modified:
branches/trac349/src/lib/python/isc/config/tests/ccsession_test.py
Modified: branches/trac349/src/lib/python/isc/config/tests/ccsession_test.py
==============================================================================
--- branches/trac349/src/lib/python/isc/config/tests/ccsession_test.py (original)
+++ branches/trac349/src/lib/python/isc/config/tests/ccsession_test.py Mon Oct 4 18:11:52 2010
@@ -385,6 +385,14 @@
def test_check_command_blocks_forever(self):
"""Check it would wait forever checking a command."""
fake_session = FakeModuleCCSession()
+ mccs = self.create_session("spec2.spec", None, None, fake_session)
+ mccs.set_command_handler(self.my_command_handler_ok)
+ self.assertRaises(WouldBlockForever, lambda: mccs.check_command(False))
+
+ def test_check_command_blocks_forever_timeout(self):
+ """Like above, but it should wait forever even with timeout here."""
+ fake_session = FakeModuleCCSession()
+ fake_session.set_timeout(1)
mccs = self.create_session("spec2.spec", None, None, fake_session)
mccs.set_command_handler(self.my_command_handler_ok)
self.assertRaises(WouldBlockForever, lambda: mccs.check_command(False))
More information about the bind10-changes
mailing list