*(dnsforward): replaced old search with the new one

This commit is contained in:
Andrey Meshkov
2020-02-21 01:07:30 +03:00
parent 90f2c18353
commit 696a6df6ba
8 changed files with 481 additions and 773 deletions

View File

@@ -100,7 +100,7 @@ func TestQLogFileSeekLargeFile(t *testing.T) {
// CASE 6: Seek non-existent (too high)
ts, _ := time.Parse(time.RFC3339, "2100-01-02T15:04:05Z07:00")
_, err = q.Seek(uint64(ts.UnixNano()))
_, err = q.Seek(ts.UnixNano())
assert.NotNil(t, err)
}
@@ -136,7 +136,7 @@ func TestQLogFileSeekSmallFile(t *testing.T) {
// CASE 6: Seek non-existent (too high)
ts, _ := time.Parse(time.RFC3339, "2100-01-02T15:04:05Z07:00")
_, err = q.Seek(uint64(ts.UnixNano()))
_, err = q.Seek(ts.UnixNano())
assert.NotNil(t, err)
}