Skip to content

Commit 5ffd7f4

Browse files
authored
Merge pull request #264 from aio-libs/fixt-tests
Fix tests
2 parents 79bad7d + 56c9fdf commit 5ffd7f4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

aiohttp_admin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def setup(app, admin_conf_path, *, resources, static_folder=None,
1818
template_folder=None, template_name=None, name=None,
1919
app_key=APP_KEY):
2020

21-
admin = web.Application()
21+
admin = web.Application(loop=app.loop)
2222
app[app_key] = admin
2323

2424
tf = gather_template_folders(template_folder)

tests/docker_fixtures.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import time
3-
import tempfile
43
from pathlib import Path
54

65
import psycopg2
@@ -11,7 +10,7 @@
1110
from docker import Client as DockerClient
1211

1312

14-
TEMP_FOLDER = Path(tempfile.gettempdir()) / 'aiohttp_admin'
13+
TEMP_FOLDER = Path('/tmp') / 'aiohttp_admin'
1514

1615

1716
def pytest_addoption(parser):

tests/rest_fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def create(*, debug=False, ssl_ctx=None, proto='http'):
158158
url = "{}://127.0.0.1:{}".format(proto, port)
159159

160160
async def app_starter():
161-
handler = app.make_handler(keep_alive_on=False, loop=loop)
161+
handler = app.make_handler(keep_alive_on=False)
162162
srv = await loop.create_server(handler, '127.0.0.1', port,
163163
ssl=ssl_ctx)
164164
cleanup.append((app, handler, srv))

0 commit comments

Comments
 (0)