From 35f1c44455532876ee731a3dd5fbf549917ac262 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Tue, 23 Dec 2025 10:13:16 -0500 Subject: [PATCH] test: fix path seperator on windows for unit test (#21382) Test TestWorkspaceTemplateParamsChange writes a file to disk Closes https://github.com/coder/internal/issues/1213 --- enterprise/coderd/workspaces_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/coderd/workspaces_test.go b/enterprise/coderd/workspaces_test.go index 6be5beb2f7..b7508b3ff8 100644 --- a/enterprise/coderd/workspaces_test.go +++ b/enterprise/coderd/workspaces_test.go @@ -3075,7 +3075,7 @@ func TestWorkspaceProvisionerdServerMetrics(t *testing.T) { // This is testing that dynamic params defers input validation to terraform. // It does not try to do this in coder/coder. func TestWorkspaceTemplateParamsChange(t *testing.T) { - indicatorFile := filepath.Join(t.TempDir(), "workspace_indicator.txt") + indicatorFile := filepath.ToSlash(filepath.Join(t.TempDir(), "workspace_indicator.txt")) mainTfTemplate := fmt.Sprintf(` terraform { required_providers {