Skip to content

Commit 7a06090

Browse files
authored
fix: pubsub.azure.eventhubs status check (#3976)
Signed-off-by: Mike Nguyen <[email protected]>
1 parent 5d4b864 commit 7a06090

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/certification/pubsub/azure/eventhubs/send-iot-device-events.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ az login --service-principal -u $AzureCertificationServicePrincipalClientId -p $
3434

3535
# Create test device ID if not already present
3636
IOT_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
4041
fi
4142

4243
# Send the test IoT device messages to the IoT Hub.`testmessageForEventHubCertificationTest` is being asserted in the certification test

0 commit comments

Comments
 (0)