add more tests

This commit is contained in:
kevin
2020-10-07 19:13:19 +08:00
parent 10b855713d
commit 305b6749fd

View File

@@ -658,6 +658,13 @@ func TestRedis_HyperLogLog(t *testing.T) {
assert.NotNil(t, err)
_, err = store.Pfcount("key")
assert.NotNil(t, err)
runOnCluster(t, func(cluster Store) {
_, err := cluster.Pfadd("key")
assert.NotNil(t, err)
_, err = cluster.Pfcount("key")
assert.NotNil(t, err)
})
}
func runOnCluster(t *testing.T, fn func(cluster Store)) {