mirror of
https://github.com/fatedier/frp.git
synced 2024-12-13 10:11:04 +01:00
14 lines
269 B
Go
14 lines
269 B
Go
|
package framework
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"github.com/fatedier/frp/test/e2e/pkg/request"
|
||
|
)
|
||
|
|
||
|
func ExpectTCPReuqest(port int, in, out []byte, timeout time.Duration) {
|
||
|
res, err := request.SendTCPRequest(port, in, timeout)
|
||
|
ExpectNoError(err)
|
||
|
ExpectEqual(string(out), res)
|
||
|
}
|