File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tests/certification/pubsub/azure/eventhubs Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ az login --service-principal -u $AzureCertificationServicePrincipalClientId -p $
3434
3535# Create test device ID if not already present
3636IOT_HUB_TEST_DEVICE_NAME=" certification-test-device"
37- if [[ -z " $( az iot hub device-identity show -n ${AzureIotHubName} -d ${IOT_HUB_TEST_DEVICE_NAME} ) " ]]; then
37+ az iot hub device-identity show -n ${AzureIotHubName} -d ${IOT_HUB_TEST_DEVICE_NAME} > /dev/null 2>&1
38+ if [[ $? -ne 0 ]]; then
3839 az iot hub device-identity create -n ${AzureIotHubName} -d ${IOT_HUB_TEST_DEVICE_NAME}
39- sleep 5
40+ sleep 10
4041fi
4142
4243# Send the test IoT device messages to the IoT Hub.`testmessageForEventHubCertificationTest` is being asserted in the certification test
You can’t perform that action at this time.
0 commit comments