mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00: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]
|
tg2 := tgs[0]
|
||||||
|
|
||||||
if tg2.Source != tg1.Source {
|
if tg2.Source != tg1.Source {
|
||||||
t.Fatalf("Source is different: %s != %s", tg1.Source, tg2.Source)
|
|
||||||
if len(tg2.Targets) > 0 {
|
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 New Issue
Block a user