You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cjw296
changed the title
async startup functions hang when TestClient is used as a context manager
synchronous startup function blocking on a future hangs when TestClient is used as a context manager
Mar 31, 2020
Right, so it seems like the intention is to support async startup callables, so this issue becomes much more of an edge case. I've filed the more important problem under #886
Not so sure, it's definitely not important, but there's still an edge case here where blocking on a future doesn't appear to work in a startup function.
Here's a brief reproducer:
The test hangs on entering the context inside the blocking stuff inside
future.result
.If I just do:
...then
foo
isn't run at all by thewith TestClient
block.The text was updated successfully, but these errors were encountered: