(t *testing.T, topologyName string, networking integration.TestNetworking, me integration.Client, derpMapPath string)
| 381 | } |
| 382 | |
| 383 | func startClientSubprocess(t *testing.T, topologyName string, networking integration.TestNetworking, me integration.Client, derpMapPath string) (<-chan error, func() error) { |
| 384 | var ( |
| 385 | clientName = fmt.Sprintf("client%d", me.Number) |
| 386 | clientProcessConfig = networking.Client1 |
| 387 | ) |
| 388 | if me.Number == integration.ClientNumber2 { |
| 389 | clientProcessConfig = networking.Client2 |
| 390 | } |
| 391 | |
| 392 | flags := []string{ |
| 393 | "--subprocess", |
| 394 | "--test-name=" + topologyName, |
| 395 | "--role=client", |
| 396 | "--client-name=" + clientName, |
| 397 | "--client-number=" + strconv.Itoa(int(me.Number)), |
| 398 | "--client-server-url=" + clientProcessConfig.ServerAccessURL, |
| 399 | "--client-derp-map-path=" + derpMapPath, |
| 400 | } |
| 401 | |
| 402 | return startSubprocess(t, clientName, clientProcessConfig.Process.NetNS, flags) |
| 403 | } |
| 404 | |
| 405 | // startSubprocess launches the test binary with the same flags as the test, but |
| 406 | // with additional flags added. |
no test coverage detected