mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 17:16:59 +02:00
chore(tests): Adding in missing unit test.
This commit is contained in:
parent
d9195d4d91
commit
1e50241a4c
@ -72,6 +72,14 @@ func TestMustRegister(t *testing.T) {
|
||||
},
|
||||
expected: 0,
|
||||
},
|
||||
{
|
||||
name: "skip if metric exists",
|
||||
metrics: []IMetric{
|
||||
NewGaugeWithOpts(prometheus.GaugeOpts{Name: "existing_metric"}),
|
||||
NewGaugeWithOpts(prometheus.GaugeOpts{Name: "existing_metric"}),
|
||||
},
|
||||
expected: 1,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
Loading…
Reference in New Issue
Block a user