1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

Add more race tests

This commit is contained in:
Vladimir Mihailenco
2018-05-17 14:36:51 +03:00
parent bc49453a24
commit 34facee367
4 changed files with 48 additions and 39 deletions

View File

@ -316,6 +316,16 @@ var _ = Describe("cluster races", func() {
})
})
It("should get", func() {
perform(C, func(id int) {
for i := 0; i < N; i++ {
key := fmt.Sprintf("key_%d_%d", id, i)
_, err := client.Get(key).Result()
Expect(err).To(Equal(redis.Nil))
}
})
})
It("should incr", func() {
key := "TestIncrFromGoroutines"