mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: upgrade tailscale to v1.46.1 (#8913)
This commit is contained in:
@ -115,11 +115,11 @@ func TestCollector_Set_Add(t *testing.T) {
|
||||
assert.Equal(t, 6, int(metrics[1].Gauge.GetValue())) // Metric value
|
||||
}
|
||||
|
||||
func collectAndSortMetrics(t *testing.T, collector prometheus.Collector, count int) []dto.Metric {
|
||||
func collectAndSortMetrics(t *testing.T, collector prometheus.Collector, count int) []*dto.Metric {
|
||||
ch := make(chan prometheus.Metric, count)
|
||||
defer close(ch)
|
||||
|
||||
var metrics []dto.Metric
|
||||
var metrics []*dto.Metric
|
||||
|
||||
collector.Collect(ch)
|
||||
for i := 0; i < count; i++ {
|
||||
@ -129,7 +129,7 @@ func collectAndSortMetrics(t *testing.T, collector prometheus.Collector, count i
|
||||
err := m.Write(&metric)
|
||||
require.NoError(t, err)
|
||||
|
||||
metrics = append(metrics, metric)
|
||||
metrics = append(metrics, &metric)
|
||||
}
|
||||
|
||||
// Ensure always the same order of metrics
|
||||
|
Reference in New Issue
Block a user