Test tweaks

This commit is contained in:
Tom Christie
2019-03-21 11:58:07 +00:00
parent d7585e1b7d
commit c6c6a380d3
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -7,7 +7,6 @@ cache: pip
python:
- "3.6"
- "3.7"
- "3.8-dev"
install:
- pip install -U -r requirements.txt
+1 -1
View File
@@ -43,7 +43,7 @@ app = Starlette(routes=routes)
async def server():
config = Config(app=app, lifespan="off")
server = Server(config=config)
task = asyncio.create_task(server.serve())
task = asyncio.ensure_future(server.serve())
try:
while not server.started:
await asyncio.sleep(0.0001)