From 4cb6c202ffe8b9f07f22c58c370206080c9d5259 Mon Sep 17 00:00:00 2001 From: JoeWrightss <42261994+JoeWrightss@users.noreply.github.com> Date: Sun, 10 Feb 2019 17:46:20 +0800 Subject: [PATCH] Fix fmt.Errorf error message (#5199) Signed-off-by: zhoulin xie --- discovery/triton/triton.go | 2 +- scrape/scrape_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/triton/triton.go b/discovery/triton/triton.go index d6a92f3af..242ac146d 100644 --- a/discovery/triton/triton.go +++ b/discovery/triton/triton.go @@ -215,7 +215,7 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) { dr := DiscoveryResponse{} err = json.Unmarshal(data, &dr) if err != nil { - return tg, fmt.Errorf("an error occurred unmarshaling the disovery response json. %s", err) + return tg, fmt.Errorf("an error occurred unmarshaling the discovery response json. %s", err) } for _, container := range dr.Containers { diff --git a/scrape/scrape_test.go b/scrape/scrape_test.go index a27ccb0aa..6c3d0cb19 100644 --- a/scrape/scrape_test.go +++ b/scrape/scrape_test.go @@ -880,7 +880,7 @@ func TestScrapeLoopAppendSampleLimit(t *testing.T) { t.Fatalf("Did not see expected sample limit error: %s", err) } - // Check that the Counter has been incremented a simgle time for the scrape, + // Check that the Counter has been incremented a single time for the scrape, // not multiple times for each sample. metric := dto.Metric{} err = targetScrapeSampleLimit.Write(&metric)