Fix wrong unit in Flask new semconv test (#2645)
This commit is contained in:
		
							parent
							
								
									58a6d3a79c
								
							
						
					
					
						commit
						529178d9ae
					
				|  | @ -497,7 +497,7 @@ class TestProgrammatic(InstrumentationTest, WsgiTestBase): | |||
|         self.client.get("/hello/123") | ||||
|         self.client.get("/hello/321") | ||||
|         self.client.get("/hello/756") | ||||
|         duration = max(round((default_timer() - start) * 1000), 0) | ||||
|         duration_s = max(default_timer() - start, 0) | ||||
|         metrics_list = self.memory_metrics_reader.get_metrics_data() | ||||
|         number_data_point_seen = False | ||||
|         histogram_data_point_seen = False | ||||
|  | @ -514,7 +514,7 @@ class TestProgrammatic(InstrumentationTest, WsgiTestBase): | |||
|                         if isinstance(point, HistogramDataPoint): | ||||
|                             self.assertEqual(point.count, 3) | ||||
|                             self.assertAlmostEqual( | ||||
|                                 duration, point.sum, delta=10 | ||||
|                                 duration_s, point.sum, places=2 | ||||
|                             ) | ||||
|                             histogram_data_point_seen = True | ||||
|                         if isinstance(point, NumberDataPoint): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue