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:
10
race_test.go
10
race_test.go
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user