mavsdk_tests: also use sleep workaround locally

However, don't sleep as long as in CI.
This commit is contained in:
Julian Oes 2020-05-20 14:23:08 +02:00
parent 1cb706c411
commit eba1cf08f8
1 changed files with 3 additions and 1 deletions

View File

@ -424,9 +424,11 @@ class Tester:
break
# Workaround to prevent gz not being able to communicate
# with gzserver
# with gzserver. In CI it tends to take longer.
if os.getenv("GITHUB_WORKFLOW") and runner.name == "gzserver":
time.sleep(10)
else:
time.sleep(2)
if abort:
self.stop_runners()