BIND 10 #2353: write tests for all methods of Bob
BIND 10 Development
do-not-reply at isc.org
Thu Nov 8 16:55:52 UTC 2012
#2353: write tests for all methods of Bob
-------------------------------------+-------------------------------------
Reporter: | Owner: muks
jinmei | Status: reviewing
Type: | Milestone:
defect | Sprint-20121120
Priority: | Resolution:
medium | Sensitive: 0
Component: Boss | Sub-Project: DNS
of BIND | Estimated Difficulty: 8
Keywords: | Total Hours: 0
Defect Severity: N/A |
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by jinmei):
Replying to [comment:6 jinmei]:
> '''Others'''
>
> - I guess start_msgq() and start_cfgmgr() need similar tests like
> test_start_auth2
In case of start_msgq(), it should also test this part:
{{{#!python
while self.cc_session is None:
# if we have been trying for "a while" give up
if (time.time() - cc_connect_start) > 5:
logger.error(BIND10_STARTING_CC_FAIL)
raise CChannelConnectError("Unable to connect to c-channel
after 5 seconds")
# try to connect, and if we can't wait a short while
try:
self.cc_session = isc.cc.Session(self.msgq_socket_file)
except isc.cc.session.SessionError:
time.sleep(0.1)
}}}
probably by stealing the time module temporarily.
--
Ticket URL: <http://bind10.isc.org/ticket/2353#comment:8>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list