Some unit tests breaks timeutils.utcnow() usage in next case
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Tomi Juvonen |
Bug Description
Especially when making new test case that gets executed after case that has made timeutils.
Traceback (most recent call last):
File "nova/tests/
instances)
File "nova/compute/
host_status = self.get_
File "nova/compute/
File "nova/servicegr
return self._driver.
File "nova/servicegr
elapsed = timeutils.
File "/home/
delta = after - before
TypeError: can't subtract offset-naive and offset-aware datetimes
Cases using timeutils.
tags: | added: testing |
Changed in nova: | |
status: | In Progress → Fix Released |
Example here: /nova/nova/ tests/unit/ compute/ test_compute_ api.py /review. openstack. org/241562
Hit that in: https:/