Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 356 Bytes
""" The TornadoRPC tests """
from threading import Thread
from tornadorpc import start_server
import time
def start_server(handler, port):
""" Starts a background server thread """
thread = Thread(target=start_server, args=[handler,], kwargs={'port':port})
thread.daemon = True
thread.start()
# time to start server
time.sleep(2)