MCPcopy Index your code
hub / github.com/coder/coder / TestServer_DisabledDERP_EmptyBaseMap

Function TestServer_DisabledDERP_EmptyBaseMap

cli/server_test.go:2470–2487  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2468}
2469
2470func 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
2489func TestServer_DisabledDERP_ExternalMap(t *testing.T) {
2490 t.Parallel()

Callers

nothing calls this directly

Calls 5

NewFunction · 0.92
StartFunction · 0.92
WithContextMethod · 0.80
dbArgFunction · 0.70
waitAccessURLFunction · 0.70

Tested by

no test coverage detected