From b8667b19363c80a6d7a4b91964c7ffbff7460aae Mon Sep 17 00:00:00 2001 From: Alfred Gedeon Date: Fri, 1 Dec 2023 14:46:37 -0800 Subject: [PATCH] Fix script --- samples/jobs/job_execution/main.cpp | 3 ++- servicetests/test_cases/test_jobs_execution.py | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/jobs/job_execution/main.cpp b/samples/jobs/job_execution/main.cpp index 4b18d2a07..bac8bd4e6 100644 --- a/samples/jobs/job_execution/main.cpp +++ b/samples/jobs/job_execution/main.cpp @@ -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, diff --git a/servicetests/test_cases/test_jobs_execution.py b/servicetests/test_cases/test_jobs_execution.py index 8e24eb16d..211c8b1b0 100644 --- a/servicetests/test_cases/test_jobs_execution.py +++ b/servicetests/test_cases/test_jobs_execution.py @@ -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;