Skip to content

Commit

Permalink
Import datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
maddieford committed Aug 6, 2023
1 parent fa977e9 commit 44d819a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests_e2e/tests/agent_status/agent_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ def run(self):

vm = VirtualMachineClient(self._context.vm)

timeout = datetime.datetime.now() + datetime.timedelta(minutes=5)
timeout = datetime.now() + datetime.timedelta(minutes=5)
instance_view_exception = None
status_updated = 0
prev_status_timestamp = None
prev_gs_processed_log = None

# Retry validating agent status updates 3 times with timeout of 5 minutes
while datetime.datetime.now() <= timeout and status_updated < 3:
while datetime.now() <= timeout and status_updated < 3:
instance_view = vm.get_instance_view()
log.info("")
log.info(
Expand Down

0 comments on commit 44d819a

Please sign in to comment.