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):
875
875
export_thread .join ()
876
876
877
877
def test_export_over_closed_grpc_channel (self ):
878
+ # pylint: disable=protected-access
879
+
878
880
add_MetricsServiceServicer_to_server (
879
881
MetricsServiceServicerSUCCESS (), self .server
880
882
)
@@ -884,9 +886,9 @@ def test_export_over_closed_grpc_channel(self):
884
886
with self .assertRaises (ValueError ) as err :
885
887
self .exporter ._client .Export (request = data )
886
888
self .assertEqual (
887
- str (err .exception ),
888
- "Cannot invoke RPC on closed channel!"
889
+ str (err .exception ), "Cannot invoke RPC on closed channel!"
889
890
)
891
+
890
892
def test_aggregation_temporality (self ):
891
893
# pylint: disable=protected-access
892
894
Original file line number Diff line number Diff line change @@ -1018,6 +1018,8 @@ def test_shutdown_wait_last_export(self):
1018
1018
export_thread .join ()
1019
1019
1020
1020
def test_export_over_closed_grpc_channel (self ):
1021
+ # pylint: disable=protected-access
1022
+
1021
1023
add_TraceServiceServicer_to_server (
1022
1024
TraceServiceServicerSUCCESS (), self .server
1023
1025
)
@@ -1027,10 +1029,10 @@ def test_export_over_closed_grpc_channel(self):
1027
1029
with self .assertRaises (ValueError ) as err :
1028
1030
self .exporter ._client .Export (request = data )
1029
1031
self .assertEqual (
1030
- str (err .exception ),
1031
- "Cannot invoke RPC on closed channel!"
1032
+ str (err .exception ), "Cannot invoke RPC on closed channel!"
1032
1033
)
1033
1034
1035
+
1034
1036
def _create_span_with_status (status : SDKStatus ):
1035
1037
span = _Span (
1036
1038
"a" ,
You can’t perform that action at this time.
0 commit comments