Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
Cleanly disconnect client before JWT expiration. [(#2622)](GoogleClou…
Browse files Browse the repository at this point in the history
  • Loading branch information
gguuss authored Dec 17, 2019
1 parent 4a7c281 commit b57115d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/api-client/manager/manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ def test_send_command(test_topic, capsys):

# Pre-process commands
for i in range(1, 5):
client.loop()
time.sleep(1)

manager.send_command(
Expand All @@ -401,10 +400,11 @@ def test_send_command(test_topic, capsys):

# Process commands
for i in range(1, 5):
client.loop()
time.sleep(1)

# Clean up
client.loop_stop()
client.disconnect()
manager.delete_device(
service_account_json, project_id, cloud_region, registry_id,
device_id)
Expand Down

0 comments on commit b57115d

Please sign in to comment.