From 446a051aba2815dc909a619fd377bf47d618254c Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 12 Dec 2024 14:40:54 -0800 Subject: [PATCH] fix import --- azext_iot/tests/iothub/core/test_iot_messaging_int.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azext_iot/tests/iothub/core/test_iot_messaging_int.py b/azext_iot/tests/iothub/core/test_iot_messaging_int.py index 904db7fa2..b9f055ca0 100644 --- a/azext_iot/tests/iothub/core/test_iot_messaging_int.py +++ b/azext_iot/tests/iothub/core/test_iot_messaging_int.py @@ -7,7 +7,7 @@ import os import pytest import json -import time +from time import time, sleep from uuid import uuid4 from azext_iot.iothub.common import NON_DECODABLE_PAYLOAD @@ -774,7 +774,7 @@ def test_mqtt_device_simulation_x509(self): model_id_simulate_x509ca = "dtmi:com:example:simulatex509ca;1" # not sure why this needs a timer but it seems to help avoid unauthorized errors - time.sleep(60) + sleep(60) self.cmd( "iot device simulate -d {} -n {} -g {} --da '{}' --mc 1 --mi 1 --cp {} --kp {} --pass {} --model-id '{}'".format( device_ids[1], self.entity_name, self.entity_rg, simulate_msg,