Skip to content

Commit

Permalink
Fix subscribe() iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Aug 10, 2024
1 parent 39a8e91 commit 2f3ed43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/graphql/execution/incremental_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ async def subscribe(

if result is not None:
yield result

if not is_done:
else:
await self._resolve.wait()
finally:
close_async_iterators = []
Expand Down
2 changes: 0 additions & 2 deletions tests/execution/test_defer.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@ async def handles_async_non_nullable_errors_thrown_in_deferred_fragments():

@pytest.mark.asyncio()
async def returns_payloads_in_correct_order():
return # TODO: hangs
document = parse(
"""
query HeroNameQuery {
Expand Down Expand Up @@ -836,7 +835,6 @@ async def returns_payloads_in_correct_order():

@pytest.mark.asyncio()
async def returns_payloads_from_synchronous_data_in_correct_order():
return # TODO: hangs
document = parse(
"""
query HeroNameQuery {
Expand Down

0 comments on commit 2f3ed43

Please sign in to comment.