mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user