File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ func (m *Manager) syncUpdates(ctx context.Context) {
222
222
nSuccess := len (m .success )
223
223
nFailure := len (m .failure )
224
224
225
- m .metrics .PendingUpdates .Set (float64 (len ( m . success ) + len ( m . failure ) ))
225
+ m .metrics .PendingUpdates .Set (float64 (nSuccess + nFailure ))
226
226
227
227
// Nothing to do.
228
228
if nSuccess + nFailure == 0 {
Original file line number Diff line number Diff line change @@ -153,7 +153,6 @@ func TestMetrics(t *testing.T) {
153
153
"coderd_notifications_inflight_dispatches" : func (metric * dto.Metric , series string ) bool {
154
154
// This is a gauge, so it can be difficult to get the timing right to catch it.
155
155
// See TestInflightDispatchesMetric for a more precise test.
156
- // TODO: write it
157
156
return true
158
157
},
159
158
"coderd_notifications_pending_updates" : func (metric * dto.Metric , series string ) bool {
You can’t perform that action at this time.
0 commit comments