(t *testing.T)
| 2468 | } |
| 2469 | |
| 2470 | func TestServer_DisabledDERP_EmptyBaseMap(t *testing.T) { |
| 2471 | t.Parallel() |
| 2472 | |
| 2473 | ctx, cancelFunc := context.WithTimeout(context.Background(), testutil.WaitShort) |
| 2474 | defer cancelFunc() |
| 2475 | |
| 2476 | // Try to start a server with the built-in DERP server disabled and no |
| 2477 | // external DERP map. |
| 2478 | inv, cfg := clitest.New(t, |
| 2479 | "server", |
| 2480 | dbArg(t), |
| 2481 | "--http-address", ":0", |
| 2482 | "--access-url", "http://example.com", |
| 2483 | "--derp-server-enable=false", |
| 2484 | ) |
| 2485 | clitest.Start(t, inv.WithContext(ctx)) |
| 2486 | waitAccessURL(t, cfg) |
| 2487 | } |
| 2488 | |
| 2489 | func TestServer_DisabledDERP_ExternalMap(t *testing.T) { |
| 2490 | t.Parallel() |
nothing calls this directly
no test coverage detected