Skip to content

Commit

Permalink
Central monitor events IT fix (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
valluriraj authored Sep 16, 2020
1 parent d3e7088 commit 7580f94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions azext_iot/tests/test_iot_central_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def test_central_monitor_events_deprecated(self):

device_client = helpers.dps_connect_device(device_id, credentials)

enqueued_time = utility.calculate_millisec_since_unix_epoch_utc() - 10000

payload = {"Bool": True}
msg = Message(
data=json.dumps(payload),
Expand All @@ -111,8 +113,6 @@ def test_central_monitor_events_deprecated(self):
)
device_client.send_message(msg)

enqueued_time = utility.calculate_millisec_since_unix_epoch_utc() - 10000

# Test with invalid app-id
self.cmd(
"iot central app monitor-events --app-id {} -y".format(APP_ID + "zzz"),
Expand All @@ -134,6 +134,8 @@ def test_central_monitor_events(self):

device_client = helpers.dps_connect_device(device_id, credentials)

enqueued_time = utility.calculate_millisec_since_unix_epoch_utc() - 10000

payload = {"Bool": True}
msg = Message(
data=json.dumps(payload),
Expand All @@ -142,8 +144,6 @@ def test_central_monitor_events(self):
)
device_client.send_message(msg)

enqueued_time = utility.calculate_millisec_since_unix_epoch_utc() - 10000

# Test with invalid app-id
self.cmd(
"iot central diagnostics monitor-events --app-id {} -y".format(
Expand Down

0 comments on commit 7580f94

Please sign in to comment.