mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-04 20:06:12 +02:00
discovery: fix build error in TestGaugeLastUpdateTimestamp (#18430)
NewTestMetrics returns a single value but the test was assigning it to two variables. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
e0cbfbe1b2
commit
f1b226a2f3
@ -1653,7 +1653,7 @@ func TestGaugeLastUpdateTimestamp(t *testing.T) {
|
||||
ctx := t.Context()
|
||||
|
||||
reg := prometheus.NewRegistry()
|
||||
_, sdMetrics := NewTestMetrics(t, reg)
|
||||
sdMetrics := NewTestMetrics(t, reg)
|
||||
|
||||
discoveryManager := NewManager(ctx, promslog.NewNopLogger(), reg, sdMetrics)
|
||||
require.NotNil(t, discoveryManager)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user