mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: fix flake in TestDERPHeaders (#9262)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user