mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vmselect/searchutils: fixed tests after 2eb72e09ab
This commit is contained in:
parent
2eb72e09ab
commit
00b5145c69
1 changed files with 6 additions and 6 deletions
|
@ -17,12 +17,12 @@ func TestGetTimeSuccess(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify defaultValue
|
// Verify defaultValue
|
||||||
ts, err := GetTime(r, "foo", 123)
|
ts, err := GetTime(r, "foo", 123456)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unexpected error when obtaining default time from GetTime(%q): %s", s, err)
|
t.Fatalf("unexpected error when obtaining default time from GetTime(%q): %s", s, err)
|
||||||
}
|
}
|
||||||
if ts != 123 {
|
if ts != 123000 {
|
||||||
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123)
|
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123000)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify timestampExpected
|
// Verify timestampExpected
|
||||||
|
@ -55,12 +55,12 @@ func TestGetTimeError(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify defaultValue
|
// Verify defaultValue
|
||||||
ts, err := GetTime(r, "foo", 123)
|
ts, err := GetTime(r, "foo", 123456)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unexpected error when obtaining default time from GetTime(%q): %s", s, err)
|
t.Fatalf("unexpected error when obtaining default time from GetTime(%q): %s", s, err)
|
||||||
}
|
}
|
||||||
if ts != 123 {
|
if ts != 123000 {
|
||||||
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123)
|
t.Fatalf("unexpected default value for GetTime(%q); got %d; want %d", s, ts, 123000)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify timestampExpected
|
// Verify timestampExpected
|
||||||
|
|
Loading…
Reference in a new issue