Files
rpcx/server/common_test.go
goodjava@qq.com d2ad510535 [+]优雅关机
2018-06-29 10:15:20 +08:00

15 lines
175 B
Go

package server
import (
"testing"
"fmt"
)
func TestGo1(t *testing.T) {
ch := make(chan struct{},1000)
ch<-struct{}{}
fmt.Println(len(ch))
<-ch
fmt.Println(len(ch))
}