add more tests

master
kevin 4 years ago
parent 10b855713d
commit 305b6749fd

@ -658,6 +658,13 @@ func TestRedis_HyperLogLog(t *testing.T) {
assert.NotNil(t, err) assert.NotNil(t, err)
_, err = store.Pfcount("key") _, err = store.Pfcount("key")
assert.NotNil(t, err) 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)) { func runOnCluster(t *testing.T, fn func(cluster Store)) {

Loading…
Cancel
Save