Skip to content

Commit

Permalink
Update wait time in OTA E2E tests (aws#2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiangang Song authored May 18, 2020
1 parent 5f6c746 commit 7227e77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def run(self):
# Start an OTA Update.
otaUpdateId = self._otaAwsAgent.quickCreateOtaUpdate(self._otaConfig, [self._protocol])

# Wait up to 3 minute until the job is in progress.
# Wait until the job is in progress.
thing_name = self._otaAwsAgent._iotThing.thing_name
exec_status = 'QUEUED'
timeout = time.time() + 180
timeout = time.time() + self._otaConfig['ota_timeout_sec']
while exec_status == 'QUEUED' and time.time() < timeout:
exec_status = self.get_job_exec_status(otaUpdateId, thing_name)
time.sleep(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def run(self):
# Start an OTA Update.
otaUpdateId = self._otaAwsAgent.quickCreateOtaUpdate(self._otaConfig, [self._protocol])

# Wait up to 3 minute until the job is in progress.
# Wait until the job is in progress.
thing_name = self._otaAwsAgent._iotThing.thing_name
exec_status = 'QUEUED'
timeout = time.time() + 180
timeout = time.time() + self._otaConfig['ota_timeout_sec']
while exec_status == 'QUEUED' and time.time() < timeout:
exec_status = self.get_job_exec_status(otaUpdateId, thing_name)
time.sleep(1)
Expand Down

0 comments on commit 7227e77

Please sign in to comment.