Skip to content

Commit

Permalink
Delay running tests until after MOCK_SERVICES_WARM_UP_DELAY
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Lo <simon.lo@sony.com>
  • Loading branch information
garethsb and lo-simon authored Oct 5, 2023
1 parent 796a115 commit 43a1f76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nmostesting/NMOSTesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,13 @@ def main(args):
print(" * Testing tool running on 'http://{}:{}'. Version '{}'"
.format(get_default_ip(), core_app.config['PORT'], TOOL_VERSION))

# Give an API or client that is already running a chance to use the mock services
# before running any test cases
if CONFIG.MOCK_SERVICES_WARM_UP_DELAY:
print(" * Warm up your engines, testing begins in {} seconds..."
.format(CONFIG.MOCK_SERVICES_WARM_UP_DELAY))
time.sleep(CONFIG.MOCK_SERVICES_WARM_UP_DELAY)

exit_code = 0
if "suite" not in vars(CMD_ARGS):
# Interactive testing mode. Await user input.
Expand Down

0 comments on commit 43a1f76

Please sign in to comment.