Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Oct 7, 2020
1 parent 10b8557 commit 305b674
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/stores/kv/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 305b674

Please sign in to comment.