Skip to content
Snippets Groups Projects
Unverified Commit c9593617 authored by Lidi Zheng's avatar Lidi Zheng Committed by GitHub
Browse files

Merge pull request #20077 from nkashy1/python-grpc-testing-abort-fix

Implemented _abort method on ServicerContext
parents 65233f78 5c173084
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,8 @@ class ServicerContext(grpc.ServicerContext): ...@@ -74,7 +74,8 @@ class ServicerContext(grpc.ServicerContext):
_common.fuss_with_metadata(trailing_metadata)) _common.fuss_with_metadata(trailing_metadata))
def abort(self, code, details): def abort(self, code, details):
raise NotImplementedError() with self._rpc._condition:
self._rpc._abort(code, details)
def abort_with_status(self, status): def abort_with_status(self, status):
raise NotImplementedError() raise NotImplementedError()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment