Commit eb2962f7 authored by Michal Vaner's avatar Michal Vaner
Browse files

Check it blocks forever even with timeout

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac349@3113 e5f2f494-b856-4b98-b285-d166d9295462
parent 31cb6c3f
......@@ -389,6 +389,14 @@ class TestModuleCCSession(unittest.TestCase):
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))
def test_remote_module(self):
fake_session = FakeModuleCCSession()
mccs = self.create_session("spec1.spec", None, None, fake_session)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment