all: typo fix: unexected -> unexpected

This commit is contained in:
Aliaksandr Valialkin 2021-12-20 17:39:43 +02:00
parent 718c352946
commit afafeb379a
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1
3 changed files with 3 additions and 3 deletions

View file

@ -254,7 +254,7 @@ func (c *client) sendBlockHTTP(block []byte) bool {
again: again:
req, err := http.NewRequest("POST", c.remoteWriteURL, bytes.NewBuffer(block)) req, err := http.NewRequest("POST", c.remoteWriteURL, bytes.NewBuffer(block))
if err != nil { 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 := req.Header
h.Set("User-Agent", "vmagent") h.Set("User-Agent", "vmagent")

View file

@ -82,7 +82,7 @@ func TestParseRelabelConfigsSuccess(t *testing.T) {
t.Helper() t.Helper()
pcs, err := ParseRelabelConfigs(rcs, false) pcs, err := ParseRelabelConfigs(rcs, false)
if err != nil { if err != nil {
t.Fatalf("unexected error: %s", err) t.Fatalf("unexpected error: %s", err)
} }
if !reflect.DeepEqual(pcs, pcsExpected) { if !reflect.DeepEqual(pcs, pcsExpected) {
t.Fatalf("unexpected pcs; got\n%#v\nwant\n%#v", pcs, pcsExpected) t.Fatalf("unexpected pcs; got\n%#v\nwant\n%#v", pcs, pcsExpected)

View file

@ -362,7 +362,7 @@ func TestNextRetentionDuration(t *testing.T) {
if d <= 0 { if d <= 0 {
currTime := time.Now().UTC() currTime := time.Now().UTC()
nextTime := time.Now().UTC().Add(d) 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)
} }
} }
} }