app/vmselect/prometheus: typo fix

This commit is contained in:
Aliaksandr Valialkin 2019-07-07 23:34:04 +03:00
parent 1371024747
commit 40a6c0d672

View file

@ -2,9 +2,9 @@ package prometheus
import ( import (
"fmt" "fmt"
"testing"
"net/http" "net/http"
"net/url" "net/url"
"testing"
) )
func TestGetTimeSuccess(t *testing.T) { func TestGetTimeSuccess(t *testing.T) {
@ -62,7 +62,7 @@ func TestGetTimeError(t *testing.T) {
} }
// Verify timestampExpected // Verify timestampExpected
ts, err = getTime(r, "s", 123) _, err = getTime(r, "s", 123)
if err == nil { if err == nil {
t.Fatalf("expecting non-nil error in getTime(%q)", s) t.Fatalf("expecting non-nil error in getTime(%q)", s)
} }