Merge "Fix periodic_resync thread in DHCP agent"
This commit is contained in:
@@ -416,7 +416,7 @@ class DhcpAgent(manager.Manager):
|
||||
|
||||
def periodic_resync(self):
|
||||
"""Spawn a thread to periodically resync the dhcp state."""
|
||||
resync_thread = threading.Thread(target=self._periodic_resync_event)
|
||||
resync_thread = threading.Thread(target=self._periodic_resync_helper)
|
||||
resync_thread.start()
|
||||
|
||||
def safe_get_network_info(self, network_id):
|
||||
|
||||
@@ -592,7 +592,7 @@ class TestDhcpAgent(base.BaseTestCase):
|
||||
mock_t.return_value = None
|
||||
dhcp.periodic_resync()
|
||||
mock_t.assert_called_once_with(
|
||||
target=dhcp._periodic_resync_event)
|
||||
target=dhcp._periodic_resync_helper)
|
||||
|
||||
def test_start_ready_ports_loop(self):
|
||||
dhcp = dhcp_agent.DhcpAgent(HOSTNAME)
|
||||
|
||||
Reference in New Issue
Block a user