测试使用gop缓存

This commit is contained in:
yangjiechina
2023-11-27 18:01:37 +08:00
parent b88be46bb7
commit 369f295452
5 changed files with 76 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ func init() {
}
func TestServer(t *testing.T) {
stream.AppConfig.GOPCache = 2
impl := serverImpl{}
addr := "0.0.0.0:1935"
tcpAddr, err := net.ResolveTCPAddr("tcp", addr)