Allow forced refresh attempt when searching (#4077)
* Allow forced refresh attempt when searching
This commit is contained in:
1 parent
cdc6fb0973
commit
c74579cead
6 files changed
+163
-16
No files matched your search
@@ -72,4 +72,11 @@ func Test_GetOpts(t *testing.T) {
|
||||
testOpts := getDefaultOptions()
|
||||
assert.Equal(t, opts, testOpts)
|
||||
})
|
||||
t.Run("withIgnoreSearchStaleness", func(t *testing.T) {
|
||||
opts, err := getOpts(WithIgnoreSearchStaleness(true))
|
||||
require.NoError(t, err)
|
||||
testOpts := getDefaultOptions()
|
||||
testOpts.withIgnoreSearchStaleness = true
|
||||
assert.Equal(t, opts, testOpts)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user