app/vmselect/searchutils: fixed tests after 2eb72e09ab

This commit is contained in:
Aliaksandr Valialkin 2020-09-21 21:31:22 +03:00
parent 07c6226334
commit e564725641

View File

@ -17,12 +17,12 @@ func TestGetTimeSuccess(t *testing.T) {
}
// Verify defaultValue
ts, err := GetTime(r, "foo", 123)
ts, err := GetTime(r, "foo", 123456)
if err != nil {
t.Fatalf("unexpected error when obtaining default time from GetTime(%q): %s", s, err)
}
if ts != 123 {
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123)
if ts != 123000 {
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123000)
}
// Verify timestampExpected
@ -55,12 +55,12 @@ func TestGetTimeError(t *testing.T) {
}
// Verify defaultValue
ts, err := GetTime(r, "foo", 123)
ts, err := GetTime(r, "foo", 123456)
if err != nil {
t.Fatalf("unexpected error when obtaining default time from GetTime(%q): %s", s, err)
}
if ts != 123 {
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123)
if ts != 123000 {
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123000)
}
// Verify timestampExpected