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 6
6
- ' release/*'
7
7
pull_request :
8
8
env :
9
- CORE_REPO_SHA : 0ef76a5cc39626f783416ca75e43556e2bb2739d
9
+ CORE_REPO_SHA : d054dff47d2da663a39b9656d106c3d15f344269
10
10
11
11
jobs :
12
12
build :
Original file line number Diff line number Diff line change @@ -190,11 +190,18 @@ def test_metric_uninstrument(self):
190
190
metrics = self .get_sorted_metrics ()
191
191
self .assertEqual (len (metrics ), 3 )
192
192
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
+
193
203
URLLibInstrumentor ().uninstrument ()
194
204
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