test: fix failed ut

This commit is contained in:
Aaron Liu
2023-04-16 09:25:57 +08:00
parent b9143b53f6
commit 00d56d6d07
2 changed files with 8 additions and 20 deletions

View File

@@ -27,3 +27,11 @@ func (c CacheClientMock) Sets(values map[string]interface{}, prefix string) erro
func (c CacheClientMock) Delete(keys []string, prefix string) error {
return c.Called(keys, prefix).Error(0)
}
func (c CacheClientMock) Persist(path string) error {
return c.Called(path).Error(0)
}
func (c CacheClientMock) Restore(path string) error {
return c.Called(path).Error(0)
}