@@ -56,8 +56,7 @@ def test_metrics_one_connection(self):
56
56
pool_logging_name = pool_name ,
57
57
)
58
58
59
- metrics = self .get_sorted_metrics ()
60
- self .assertEqual (len (metrics ), 0 )
59
+ self .assertIsNone (self .memory_metrics_reader .get_metrics_data ())
61
60
62
61
with engine .connect ():
63
62
self .assert_pool_idle_used_expected (
@@ -78,8 +77,7 @@ def test_metrics_without_pool_name(self):
78
77
pool_logging_name = pool_name ,
79
78
)
80
79
81
- metrics = self .get_sorted_metrics ()
82
- self .assertEqual (len (metrics ), 0 )
80
+ self .assertIsNone (self .memory_metrics_reader .get_metrics_data ())
83
81
84
82
with engine .connect ():
85
83
self .assert_pool_idle_used_expected (
@@ -100,8 +98,7 @@ def test_metrics_two_connections(self):
100
98
pool_logging_name = pool_name ,
101
99
)
102
100
103
- metrics = self .get_sorted_metrics ()
104
- self .assertEqual (len (metrics ), 0 )
101
+ self .assertIsNone (self .memory_metrics_reader .get_metrics_data ())
105
102
106
103
with engine .connect ():
107
104
with engine .connect ():
@@ -122,8 +119,7 @@ def test_metrics_connections(self):
122
119
pool_logging_name = pool_name ,
123
120
)
124
121
125
- metrics = self .get_sorted_metrics ()
126
- self .assertEqual (len (metrics ), 0 )
122
+ self .assertIsNone (self .memory_metrics_reader .get_metrics_data ())
127
123
128
124
with engine .connect ():
129
125
with engine .connect ():
@@ -156,5 +152,4 @@ def test_metric_uninstrument(self):
156
152
157
153
engine .connect ()
158
154
159
- metrics = self .get_sorted_metrics ()
160
- self .assertEqual (len (metrics ), 0 )
155
+ self .assertIsNone (self .memory_metrics_reader .get_metrics_data ())
0 commit comments