Skip to content

Commit

Permalink
[test] Fix opampsupervisor test on Windows (open-telemetry#36282)
Browse files Browse the repository at this point in the history
Fix open-telemetry#36278

The issue is that the temporary path used in the test is passed as text
to an yaml file so the Windows dir separator ends up as a escape char on
the yaml.
  • Loading branch information
pjanotti authored and sbylica-splunk committed Dec 17, 2024
1 parent 0a6e67b commit b3420f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/opampsupervisor/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func getSupervisorConfig(t *testing.T, configType string, extraConfigData map[st
"goos": runtime.GOOS,
"goarch": runtime.GOARCH,
"extension": extension,
"storage_dir": t.TempDir(),
"storage_dir": strings.ReplaceAll(t.TempDir(), "\\", "\\\\"),
}

for key, val := range extraConfigData {
Expand Down

0 comments on commit b3420f7

Please sign in to comment.