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

Move Select to stateful commands and make it available only via Pipeline and Tx.

This commit is contained in:
Vladimir Mihailenco
2016-06-05 09:45:39 +00:00
parent 5a2dda6d40
commit ac162eb843
13 changed files with 481 additions and 485 deletions

View File

@ -172,7 +172,7 @@ var _ = Describe("races", func() {
perform(C, func(id int) {
opt := redisOptions()
opt.DB = int64(id)
opt.DB = id
client := redis.NewClient(opt)
for i := 0; i < N; i++ {
err := client.Set("db", id, 0).Err()
@ -194,7 +194,7 @@ var _ = Describe("races", func() {
It("should select DB with read timeout", func() {
perform(C, func(id int) {
opt := redisOptions()
opt.DB = int64(id)
opt.DB = id
opt.ReadTimeout = time.Nanosecond
client := redis.NewClient(opt)