chore: fix flake in TestDERPHeaders (#9262)

This commit is contained in:
Dean Sheather
2023-08-23 04:03:39 -07:00
committed by GitHub
parent a3d31268a3
commit 53de47d4c8

View File

@ -114,7 +114,11 @@ func TestDERPHeaders(t *testing.T) {
// Create a coderd API instance the hard way since we need to change the
// handler to inject our custom /derp handler.
setHandler, cancelFunc, serverURL, newOptions := coderdtest.NewOptions(t, nil)
dv := coderdtest.DeploymentValues(t)
dv.DERP.Config.BlockDirect = true
setHandler, cancelFunc, serverURL, newOptions := coderdtest.NewOptions(t, &coderdtest.Options{
DeploymentValues: dv,
})
// We set the handler after server creation for the access URL.
coderAPI := coderd.New(newOptions)