File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
exporter/opentelemetry-exporter-otlp-proto-grpc/tests Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -875,6 +875,8 @@ def test_shutdown_wait_last_export(self):
875875 export_thread .join ()
876876
877877 def test_export_over_closed_grpc_channel (self ):
878+ # pylint: disable=protected-access
879+
878880 add_MetricsServiceServicer_to_server (
879881 MetricsServiceServicerSUCCESS (), self .server
880882 )
@@ -884,9 +886,9 @@ def test_export_over_closed_grpc_channel(self):
884886 with self .assertRaises (ValueError ) as err :
885887 self .exporter ._client .Export (request = data )
886888 self .assertEqual (
887- str (err .exception ),
888- "Cannot invoke RPC on closed channel!"
889+ str (err .exception ), "Cannot invoke RPC on closed channel!"
889890 )
891+
890892 def test_aggregation_temporality (self ):
891893 # pylint: disable=protected-access
892894
Original file line number Diff line number Diff line change @@ -1018,6 +1018,8 @@ def test_shutdown_wait_last_export(self):
10181018 export_thread .join ()
10191019
10201020 def test_export_over_closed_grpc_channel (self ):
1021+ # pylint: disable=protected-access
1022+
10211023 add_TraceServiceServicer_to_server (
10221024 TraceServiceServicerSUCCESS (), self .server
10231025 )
@@ -1027,10 +1029,10 @@ def test_export_over_closed_grpc_channel(self):
10271029 with self .assertRaises (ValueError ) as err :
10281030 self .exporter ._client .Export (request = data )
10291031 self .assertEqual (
1030- str (err .exception ),
1031- "Cannot invoke RPC on closed channel!"
1032+ str (err .exception ), "Cannot invoke RPC on closed channel!"
10321033 )
10331034
1035+
10341036def _create_span_with_status (status : SDKStatus ):
10351037 span = _Span (
10361038 "a" ,
You can’t perform that action at this time.
0 commit comments