Fix fmt.Errorf error message (#5199)

Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
JoeWrightss 2019-02-10 17:46:20 +08:00 committed by Ganesh Vernekar
parent a2a6e24f9f
commit 4cb6c202ff
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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)