startLambdaProxy starts the lambda-nat-proxy process
(ctx context.Context)
| 74 | |
| 75 | // startLambdaProxy starts the lambda-nat-proxy process |
| 76 | func 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 |
| 88 | func waitForSOCKS5(ctx context.Context, port int, timeout time.Duration) error { |
no test coverage detected