mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
all: typo fix: unexected -> unexpected
This commit is contained in:
parent
718c352946
commit
afafeb379a
3 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue