Skip to content

Commit

Permalink
[test] Fix opampsupervisor test on Windows (#36282)
Browse files Browse the repository at this point in the history
Fix #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 Nov 8, 2024
1 parent 68f39ff commit 5618c7c
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 5618c7c

Please sign in to comment.