mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-07-25 19:48:34 +00:00
feat(wip): test reworks
This commit is contained in:
@@ -84,7 +84,7 @@ func TestServerTrafficLogger(t *testing.T) {
|
||||
defer c.Close()
|
||||
|
||||
// Dial TCP
|
||||
tConn, err := c.DialTCP(echoTCPAddr.String())
|
||||
tConn, err := c.TCP(echoTCPAddr.String())
|
||||
if err != nil {
|
||||
t.Fatal("error dialing TCP:", err)
|
||||
}
|
||||
@@ -124,7 +124,7 @@ func TestServerTrafficLogger(t *testing.T) {
|
||||
go uEchoServer.Serve()
|
||||
|
||||
// Listen UDP
|
||||
uConn, err := c.ListenUDP()
|
||||
uConn, err := c.UDP()
|
||||
if err != nil {
|
||||
t.Fatal("error listening UDP:", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user