mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
fix minor code unreachability error (#11040)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
parent
c2c5c105c4
commit
465558e93a
|
@ -159,10 +159,10 @@ func TestMarathonSDRemoveApp(t *testing.T) {
|
|||
tg2 := tgs[0]
|
||||
|
||||
if tg2.Source != tg1.Source {
|
||||
t.Fatalf("Source is different: %s != %s", tg1.Source, tg2.Source)
|
||||
if len(tg2.Targets) > 0 {
|
||||
t.Fatalf("Got a non-empty target set: %s", tg2.Targets)
|
||||
t.Errorf("Got a non-empty target set: %s", tg2.Targets)
|
||||
}
|
||||
t.Fatalf("Source is different: %s != %s", tg1.Source, tg2.Source)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue