package proxy import ( "sync" "testing" ) func TestProxy(t *testing.T) { var wait sync.WaitGroup wait.Add(1) run := Run("test", TCPArgs{ Local: ":8100", Parent: "10.0.1.174:5555", Timeout: 1500, PoolSize: 5, CheckParentInterval: 30, OutCallback: func() bool { return true }, }) if run == nil { wait.Done() } wait.Wait() }