Skip to content

Commit

Permalink
test wait for server to start
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuang committed Nov 14, 2019
1 parent 5db4740 commit 8bc90b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/run_client_server_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
import os
import sys
import subprocess
import time

def main(server, *client):
# Start the test server
print("Starting test server")
server_proc = subprocess.Popen(server)

# Kludge. Wait for server to start.
time.sleep(1)

# Run the client tests while the test server is running
print("Starting test client")
test_result = subprocess.call(client)

# Stop the test server
Expand Down

0 comments on commit 8bc90b8

Please sign in to comment.