From 465558e93abae0ea97e3c5482870daef120c27cc Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Tue, 2 Aug 2022 19:21:59 +0800 Subject: [PATCH] fix minor code unreachability error (#11040) Signed-off-by: Abirdcfly --- discovery/marathon/marathon_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/marathon/marathon_test.go b/discovery/marathon/marathon_test.go index 415456c7a..258e3c8dd 100644 --- a/discovery/marathon/marathon_test.go +++ b/discovery/marathon/marathon_test.go @@ -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) } }