Migrate golanglint-ci config to V2 (#21081)

This commit is contained in:
Taran Pelkey
2025-03-29 20:56:02 -04:00
committed by GitHub
parent b67f0cf721
commit e88d494775
77 changed files with 239 additions and 290 deletions

View File

@@ -76,10 +76,8 @@ func TestGetHistogramMetrics_BucketCount(t *testing.T) {
// Send observations once every 1ms, to simulate delay between
// observations. This is to test the channel based
// synchronization used internally.
select {
case <-ticker.C:
ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
}
<-ticker.C
ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
}
metrics := getHistogramMetrics(ttfbHist, getBucketTTFBDistributionMD(), false, false)
@@ -137,10 +135,8 @@ func TestGetHistogramMetrics_Values(t *testing.T) {
// Send observations once every 1ms, to simulate delay between
// observations. This is to test the channel based
// synchronization used internally.
select {
case <-ticker.C:
ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
}
<-ticker.C
ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
}
// Accumulate regular-cased API label metrics for 'PutObject' for deeper verification