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
This commit is contained in:
Steven Masley
2025-12-23 15:13:16 +00:00
committed by GitHub
parent 923c04e3e3
commit 35f1c44455
+1 -1
View File
@@ -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 {