MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / startLambdaProxy

Function startLambdaProxy

test/e2e/basic_test.go:76–85  ·  view source on GitHub ↗

startLambdaProxy starts the lambda-nat-proxy process

(ctx context.Context)

Source from the content-addressed store, hash-verified

74
75// startLambdaProxy starts the lambda-nat-proxy process
76func startLambdaProxy(ctx context.Context) (*exec.Cmd, error) {
77 cmd := exec.CommandContext(ctx, "./build/lambda-nat-proxy", "run", "--mode", "test")
78 cmd.Dir = "../.."
79
80 if err := cmd.Start(); err != nil {
81 return nil, err
82 }
83
84 return cmd, nil
85}
86
87// waitForSOCKS5 waits for the SOCKS5 proxy to be available
88func waitForSOCKS5(ctx context.Context, port int, timeout time.Duration) error {

Callers 1

TestBasicConnectivityFunction · 0.85

Calls 1

StartMethod · 0.65

Tested by

no test coverage detected