Skip to content

Commit 53de47d

Browse files
authored
chore: fix flake in TestDERPHeaders (#9262)
1 parent a3d3126 commit 53de47d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/root_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ func TestDERPHeaders(t *testing.T) {
114114

115115
// Create a coderd API instance the hard way since we need to change the
116116
// handler to inject our custom /derp handler.
117-
setHandler, cancelFunc, serverURL, newOptions := coderdtest.NewOptions(t, nil)
117+
dv := coderdtest.DeploymentValues(t)
118+
dv.DERP.Config.BlockDirect = true
119+
setHandler, cancelFunc, serverURL, newOptions := coderdtest.NewOptions(t, &coderdtest.Options{
120+
DeploymentValues: dv,
121+
})
118122

119123
// We set the handler after server creation for the access URL.
120124
coderAPI := coderd.New(newOptions)

0 commit comments

Comments
 (0)