From afafeb379a5a43da63061f01932608bf22acde1a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 20 Dec 2021 17:39:43 +0200 Subject: [PATCH] all: typo fix: unexected -> unexpected --- app/vmagent/remotewrite/client.go | 2 +- lib/promrelabel/config_test.go | 2 +- lib/storage/storage_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/vmagent/remotewrite/client.go b/app/vmagent/remotewrite/client.go index 479a21080..5a4f5ea53 100644 --- a/app/vmagent/remotewrite/client.go +++ b/app/vmagent/remotewrite/client.go @@ -254,7 +254,7 @@ func (c *client) sendBlockHTTP(block []byte) bool { again: req, err := http.NewRequest("POST", c.remoteWriteURL, bytes.NewBuffer(block)) if err != nil { - logger.Panicf("BUG: unexected error from http.NewRequest(%q): %s", c.sanitizedURL, err) + logger.Panicf("BUG: unexpected error from http.NewRequest(%q): %s", c.sanitizedURL, err) } h := req.Header h.Set("User-Agent", "vmagent") diff --git a/lib/promrelabel/config_test.go b/lib/promrelabel/config_test.go index 7b83b6aae..71a16e822 100644 --- a/lib/promrelabel/config_test.go +++ b/lib/promrelabel/config_test.go @@ -82,7 +82,7 @@ func TestParseRelabelConfigsSuccess(t *testing.T) { t.Helper() pcs, err := ParseRelabelConfigs(rcs, false) if err != nil { - t.Fatalf("unexected error: %s", err) + t.Fatalf("unexpected error: %s", err) } if !reflect.DeepEqual(pcs, pcsExpected) { t.Fatalf("unexpected pcs; got\n%#v\nwant\n%#v", pcs, pcsExpected) diff --git a/lib/storage/storage_test.go b/lib/storage/storage_test.go index c58788a83..bcfe87f60 100644 --- a/lib/storage/storage_test.go +++ b/lib/storage/storage_test.go @@ -362,7 +362,7 @@ func TestNextRetentionDuration(t *testing.T) { if d <= 0 { currTime := time.Now().UTC() nextTime := time.Now().UTC().Add(d) - t.Fatalf("unexected retention duration for retentionMonths=%f; got %s; must be %s + %f months", retentionMonths, nextTime, currTime, retentionMonths) + t.Fatalf("unexpected retention duration for retentionMonths=%f; got %s; must be %s + %f months", retentionMonths, nextTime, currTime, retentionMonths) } } }