Browse Source

Merge "Fix time usage in unit tests for agent power interface"

changes/16/746416/1 15.2.0
Zuul 9 months ago
committed by Gerrit Code Review
parent
commit
df9ce79f23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ironic/tests/unit/drivers/modules/test_agent_power.py

+ 1
- 1
ironic/tests/unit/drivers/modules/test_agent_power.py View File

@ -30,7 +30,7 @@ class AgentPowerTest(db_base.DbTestCase):
self.config(fast_track=True, group='deploy')
self.power = agent_power.AgentPower()
dii = {
'agent_last_heartbeat': datetime.datetime.now().strftime(
'agent_last_heartbeat': datetime.datetime.utcnow().strftime(
"%Y-%m-%dT%H:%M:%S.%f"),
'deployment_reboot': True,
'agent_url': 'http://url',


Loading…
Cancel
Save