File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
instrumentation/opentelemetry-instrumentation-urllib/tests Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 66 - ' release/*'
77 pull_request :
88env :
9- CORE_REPO_SHA : 0ef76a5cc39626f783416ca75e43556e2bb2739d
9+ CORE_REPO_SHA : d054dff47d2da663a39b9656d106c3d15f344269
1010
1111jobs :
1212 build :
Original file line number Diff line number Diff line change @@ -190,11 +190,18 @@ def test_metric_uninstrument(self):
190190 metrics = self .get_sorted_metrics ()
191191 self .assertEqual (len (metrics ), 3 )
192192
193+ self .assertEqual (
194+ metrics [0 ].data .data_points [0 ].sum , 1
195+ )
196+ self .assertEqual (
197+ metrics [1 ].data .data_points [0 ].sum , 0
198+ )
199+ self .assertEqual (
200+ metrics [2 ].data .data_points [0 ].sum , 6
201+ )
202+
193203 URLLibInstrumentor ().uninstrument ()
194204 with request .urlopen (self .URL ):
195- metrics = self .get_sorted_metrics ()
196- self .assertEqual (len (metrics ), 3 )
197-
198- for metric in metrics :
199- for point in list (metric .data .data_points ):
200- self .assertEqual (point .count , 1 )
205+ self .assertIsNone (
206+ self .memory_metrics_reader .get_metrics_data ()
207+ )
You can’t perform that action at this time.
0 commit comments