Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Dec 1, 2023
1 parent 9689feb commit b8667b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion samples/jobs/job_execution/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ int main(int argc, char *argv[])
// Pretend doing some work
std::this_thread::sleep_for(std::chrono::milliseconds(1000));

updateJobExecution(JobStatus::SUCCEEDED,
updateJobExecution(
JobStatus::SUCCEEDED,
cmdData.input_thingName,
currentJobId,
jobsClient,
Expand Down
5 changes: 2 additions & 3 deletions servicetests/test_cases/test_jobs_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ def main():

thing_job = 'ERROR'
i = 0;
while 'ERROR' in thing_job and i <= 3:
while 'ERROR' in thing_job and i <= 3:
try:
job_id = secrets_client.get_secret_value(SecretId="ci/JobsServiceClientTest/job_id")["SecretString"]
thing_job = iot_client.describe_job_execution(jobId=job_id,
thingName=thing_name, includeJobDocument=False)
thing_job = iot_client.describe_job_execution(jobId=job_id, thingName=thing_name)
print('thing job is {thing_job}');
if 'ERROR' in thing_job:
i = i + 1;
Expand Down

0 comments on commit b8667b1

Please sign in to comment.