redis rpc服务, 提供redis操作方法
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

24 lines
317 B

package redisrpc
import (
"log"
"testing"
// "time"
)
func Test_ReduceStock(t *testing.T) {
ch := make(chan int)
for i := 0; i < 100; i++ {
go func() {
log.Println("start")
reply, err := ReduceStock("test_watch", "2")
log.Println(reply)
log.Println(err)
log.Println("end")
}()
}
<-ch
}