Allow forced refresh attempt when searching (#4077)

* Allow forced refresh attempt when searching
This commit is contained in:
Todd authored and Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:20 -08:00
1 parent cdc6fb0973
commit c74579cead
6 files changed
+163 -16

No files matched your search

+7
View File
@@ -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)
})
}