Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
37e3ef02
Commit
37e3ef02
authored
Mar 26, 2013
by
Jelte Jansen
Browse files
[1086] Fix wrong addressformatter call
and add test for it
parent
716006fe
Changes
2
Show whitespace changes
Inline
Side-by-side
src/bin/bind10/init.py.in
View file @
37e3ef02
...
@@ -429,7 +429,7 @@ class Init:
...
@@ -429,7 +429,7 @@ class Init:
port)
port)
else:
else:
logger.info(BIND10_STARTING_PROCESS_PORT_ADDRESS,
logger.info(BIND10_STARTING_PROCESS_PORT_ADDRESS,
self.curproc, AddressFormatter(address, port))
self.curproc, AddressFormatter(
(
address, port))
)
def log_started(self, pid = None):
def log_started(self, pid = None):
"""
"""
...
...
src/bin/bind10/tests/init_test.py.in
View file @
37e3ef02
...
@@ -2339,6 +2339,16 @@ class SocketSrvTest(unittest.TestCase):
...
@@ -2339,6 +2339,16 @@ class SocketSrvTest(unittest.TestCase):
self.assertEqual({}, self.__b10_init._unix_sockets)
self.assertEqual({}, self.__b10_init._unix_sockets)
self.assertTrue(sock.closed)
self.assertTrue(sock.closed)
def test_log_starting(self):
"""
Checks the log_starting call doesn't raise any errors
(does not check actual log output)
"""
self.__b10_init.log_starting("foo")
self.__b10_init.log_starting("foo", 1)
self.__b10_init.log_starting("foo", 1, "192.0.2.1")
class TestFunctions(unittest.TestCase):
class TestFunctions(unittest.TestCase):
def setUp(self):
def setUp(self):
self.lockfile_testpath = \
self.lockfile_testpath = \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment