mirror of
https://github.com/fatedier/frp.git
synced 2025-07-20 04:39:26 +07:00
new e2e framework (#1835)
This commit is contained in:
13
test/e2e/framework/request.go
Normal file
13
test/e2e/framework/request.go
Normal file
@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user