Browse Source

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

changes/16/746416/1 15.2.0
Zuul 1 year ago
committed by Gerrit Code Review
parent
commit
df9ce79f23
  1. 2
      ironic/tests/unit/drivers/modules/test_agent_power.py

2
ironic/tests/unit/drivers/modules/test_agent_power.py

@ -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