Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Dec 12, 2024
1 parent 949ada4 commit a29b9be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/benchmarks/test_execute_with_extensions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
from inspect import isawaitable
from pathlib import Path
from typing import Any, Dict, List

Expand All @@ -21,7 +20,7 @@ def get_results(self) -> AwaitableOrValue[Dict[str, Any]]:
class ResolveExtension(SchemaExtension):
async def resolve(self, _next, root, info, *args: Any, **kwargs: Any) -> Any:
result = _next(root, info, *args, **kwargs)
if isawaitable(result):
if self.should_await(_next):
result = await result
return result

Expand Down

0 comments on commit a29b9be

Please sign in to comment.