Browse Source

Remove timeutils.clear_time_override in neutron

The clear_time_override function in timeutils was written as a
helper function to mock utcnow for unittests before 'mock' was
generally used. Now that we have mock and fixture, we no longer
need to use it.

Change-Id: I7baa623fd71a7d03acc61dd1f18287bb654539cd
Partial-Bug: #1266962
tags/10.0.0.0b2
Luong Anh Tuan 3 years ago
parent
commit
5805a075b5
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      neutron/tests/unit/services/metering/agents/test_metering_agent.py

+ 0
- 1
neutron/tests/unit/services/metering/agents/test_metering_agent.py View File

@@ -130,7 +130,6 @@ class TestMeteringOperations(base.BaseTestCase):

now = timeutils.utcnow()
time_fixture = self.useFixture(utils_fixture.TimeFixture(now))
self.addCleanup(timeutils.clear_time_override)

self.agent.routers_updated(None, ROUTERS)


Loading…
Cancel
Save