Skip to content

Commit

Permalink
Add wait
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed May 2, 2024
1 parent 7880f0d commit 0786500
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions servicetests/tests/JobsExecution/JobsExecution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,5 +379,6 @@ void JobsExecution::updateCurrentJobStatus(Aws::Iotjobs::JobStatus jobStatus)
publishRequest.ExpectedVersion = currentVersionNumber++;
m_jobsClient->PublishUpdateJobExecution(publishRequest, AWS_MQTT_QOS_AT_LEAST_ONCE, publishHandler);

publishDescribeJobExeCompletedPromise.get_future().wait();
m_pendingExecutionPromise.get_future().wait();
}

0 comments on commit 0786500

Please sign in to comment.