Skip to content

Commit cebb622

Browse files
committed
RTU: test is fixed by syncio.sync_operation
1 parent 3b92183 commit cebb622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/nexus/test_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
StartOperationContext,
4343
service_handler,
4444
sync_operation,
45+
syncio,
4546
)
4647
from nexusrpc.handler._decorators import operation_handler
4748

@@ -864,8 +865,7 @@ class EchoService:
864865

865866
@service_handler(service=EchoService)
866867
class SyncStartHandler:
867-
# TODO(nexus-prerelease): why is this test passing? start is not `async def`
868-
@sync_operation
868+
@syncio.sync_operation
869869
def echo(self, ctx: StartOperationContext, input: Input) -> Output:
870870
assert ctx.headers["test-header-key"] == "test-header-value"
871871
ctx.outbound_links.extend(ctx.inbound_links)

0 commit comments

Comments
 (0)