wantLastValueMetric() is not verifying the last value of a metric #623
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: cleanup
An internal cleanup or hygiene concern.
This line passes in
TestDialerWithMetrics
if the wanted value is set to1
. This is becausewantLastValueMetric()
is not correctly verifying the last value of a metric. It currently checks whether at some point in time the metric had the wanted value, as seen from these lines.In
TestDialerWithMetrics
, the "alloydbconn/open_connections" metric had the following values at different times:Should we fix
wantLastValueMetric()
so that it looks at the latest value of the metric?The text was updated successfully, but these errors were encountered: