frp/test/e2e/framework/request.go

14 lines
269 B
Go
Raw Normal View History

2020-06-02 16:48:55 +02:00
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)
}