mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-26 23:27:22 +00:00
test(plugin): check type assertions to satisfy errcheck lint
This commit is contained in:
1 parent
c63bd14a02
commit
6477143533
2 files changed
+6
-3
No files matched your search
@@ -15,7 +15,8 @@ func newTestPluginKVStore(t *testing.T) (*pluginKVStore, *miniredis.Miniredis) {
|
||||
t.Helper()
|
||||
mr := miniredis.RunT(t)
|
||||
rdb := redis.NewClient(&redis.Options{Addr: mr.Addr()})
|
||||
store := NewPluginKVStore(rdb).(*pluginKVStore)
|
||||
store, ok := NewPluginKVStore(rdb).(*pluginKVStore)
|
||||
require.True(t, ok)
|
||||
return store, mr
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user