Commit 37e3ef02 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[1086] Fix wrong addressformatter call

and add test for it
parent 716006fe
...@@ -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):
""" """
......
...@@ -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 = \
......
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