From 4c150577ab90fcb4b1fa13059d0bfb9add08e110 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Wed, 23 Aug 2023 07:20:10 +0000 Subject: [PATCH] chore: fix flake in TestDERPHeaders --- 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 898a3fb9999eb..68336ba23a599 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)