We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b92183 commit cebb622Copy full SHA for cebb622
tests/nexus/test_handler.py
@@ -42,6 +42,7 @@
42
StartOperationContext,
43
service_handler,
44
sync_operation,
45
+ syncio,
46
)
47
from nexusrpc.handler._decorators import operation_handler
48
@@ -864,8 +865,7 @@ class EchoService:
864
865
866
@service_handler(service=EchoService)
867
class SyncStartHandler:
- # TODO(nexus-prerelease): why is this test passing? start is not `async def`
868
- @sync_operation
+ @syncio.sync_operation
869
def echo(self, ctx: StartOperationContext, input: Input) -> Output:
870
assert ctx.headers["test-header-key"] == "test-header-value"
871
ctx.outbound_links.extend(ctx.inbound_links)
0 commit comments