From 198b09bfa380642cc3e79bd609228dc3f4d07dea Mon Sep 17 00:00:00 2001 From: Prem Saraswat Date: Sun, 11 Apr 2021 17:09:48 +0530 Subject: [PATCH] Fix prom targets test Signed-off-by: Prem Saraswat --- pkg/targets/prometheus_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/targets/prometheus_test.go b/pkg/targets/prometheus_test.go index b36a777517b..e56d8163838 100644 --- a/pkg/targets/prometheus_test.go +++ b/pkg/targets/prometheus_test.go @@ -93,6 +93,7 @@ scrape_configs: }}, ScrapePool: "myself", ScrapeUrl: fmt.Sprintf("http://%s/metrics", p.Addr()), + GlobalUrl: "", Health: targetspb.TargetHealth_UP, LastScrape: time.Time{}, LastScrapeDuration: 0, @@ -151,6 +152,7 @@ scrape_configs: targets.ActiveTargets[i].LastScrapeDuration = 0 targets.ActiveTargets[i].LastScrape = time.Time{} targets.ActiveTargets[i].LastError = "" + targets.ActiveTargets[i].GlobalUrl = "" } testutil.Equals(t, expectedTargets.ActiveTargets, targets.ActiveTargets)