Skip to content

Commit

Permalink
Fix prom targets test
Browse files Browse the repository at this point in the history
Signed-off-by: Prem Saraswat <[email protected]>
  • Loading branch information
onprem committed Apr 11, 2021
1 parent 571a6cd commit 198b09b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/targets/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 198b09b

Please sign in to comment.