Skip to content

Commit

Permalink
Fix software tests, and improve their timing
Browse files Browse the repository at this point in the history
How could it have worked before?
  • Loading branch information
amotl committed May 8, 2024
1 parent 3671c43 commit e6272d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def mqttshark():

command = """mosquitto_pub -t 'testdrive' -m '{"temperature": 42.42}'"""
runs.run(command)
ev.wait(0.25)
ev.wait(0.5)

runs.run("sudo pkill tshark")
ev.wait(0.25)
Expand Down Expand Up @@ -75,5 +75,4 @@ def run_mqttshark(arguments):
"""
command = f"sudo python mqttshark {arguments}"
response = runs.run(command)
if response:
return response[0]
return response

0 comments on commit e6272d9

Please sign in to comment.