From 53de47d4c825478e56db02fff7fe35f140238a18 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Wed, 23 Aug 2023 04:03:39 -0700 Subject: [PATCH] chore: fix flake in TestDERPHeaders (#9262) --- cli/root_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/root_test.go b/cli/root_test.go index 898a3fb999..68336ba23a 100644 --- a/cli/root_test.go +++ b/cli/root_test.go @@ -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)