Browse Source

Remove unused method from timeutils

Ironic no longer uses set_time_override. Therefore there is no need to
invoke clear_time_override anymore.

Change-Id: I502d7bb6bd22b9ad9239cd78c80938d5925347d2
Related-Bug: #1266962
tags/2014.1.rc1
Zhongyue Luo 5 years ago
parent
commit
ebd9e9bbaf
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      ironic/nova/tests/scheduler/test_ironic_host_manager.py

+ 0
- 4
ironic/nova/tests/scheduler/test_ironic_host_manager.py View File

@@ -19,7 +19,6 @@ Tests For IronicHostManager
19 19
 
20 20
 from nova import db
21 21
 from nova import exception
22
-from nova.openstack.common import timeutils
23 22
 from nova.scheduler import filters
24 23
 from nova.scheduler import ironic_host_manager
25 24
 from nova import test
@@ -46,7 +45,6 @@ class IronicHostManagerTestCase(test.NoDBTestCase):
46 45
                 'fake_host%s' % x, 'fake-node') for x in range(1, 5)]
47 46
         self.fake_hosts += [ironic_host_manager.IronicNodeState(
48 47
                 'fake_multihost', 'fake-node%s' % x) for x in range(1, 5)]
49
-        self.addCleanup(timeutils.clear_time_override)
50 48
 
51 49
     def test_get_all_host_states(self):
52 50
         # Ensure .service is set and we have the values we expect to.
@@ -109,7 +107,6 @@ class IronicHostManagerChangedNodesTestCase(test.NoDBTestCase):
109 107
                             supported_instances=
110 108
                                         '[["i386", "baremetal", "baremetal"]]',
111 109
                             free_disk_gb=10, free_ram_mb=1024)
112
-        self.addCleanup(timeutils.clear_time_override)
113 110
 
114 111
     def test_get_all_host_states(self):
115 112
         context = 'fake_context'
@@ -211,7 +208,6 @@ class IronicHostManagerTestFilters(test.NoDBTestCase):
211 208
                 'fake_host%s' % x, 'fake-node') for x in range(1, 5)]
212 209
         self.fake_hosts += [ironic_host_manager.IronicNodeState(
213 210
                 'fake_multihost', 'fake-node%s' % x) for x in range(1, 5)]
214
-        self.addCleanup(timeutils.clear_time_override)
215 211
 
216 212
     def test_choose_host_filters_not_found(self):
217 213
         self.flags(scheduler_default_filters='FakeFilterClass3')

Loading…
Cancel
Save