Skip to content

Commit 5bf4982

Browse files
committed
For some reason need to await io_loop fixture
1 parent b04f526 commit 5bf4982

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

binderhub/tests/test_build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ def test_git_credentials_passed_to_podspec_upon_submit():
216216

217217

218218
async def test_local_repo2docker_build(io_loop):
219+
# Todo: why is await necessary? Without await:
220+
# AttributeError: 'coroutine' object has no attribute 'run_in_executor'
221+
io_loop = await io_loop
219222
q = Queue()
220223
repo_url = "https://github.com/binderhub-ci-repos/cached-minimal-dockerfile"
221224
ref = "HEAD"
@@ -248,6 +251,7 @@ async def test_local_repo2docker_build(io_loop):
248251

249252
@pytest.mark.asyncio(timeout=20)
250253
async def test_local_repo2docker_build_stop(io_loop):
254+
io_loop = await io_loop
251255
q = Queue()
252256
# We need a slow build here so that we can interrupt it, so pick a large repo that
253257
# will take several seconds to clone

0 commit comments

Comments
 (0)