diff --git a/internal/pkg/agent/application/paths/common_test.go b/internal/pkg/agent/application/paths/common_test.go index 77249827d82..8bb82c39d1a 100644 --- a/internal/pkg/agent/application/paths/common_test.go +++ b/internal/pkg/agent/application/paths/common_test.go @@ -54,7 +54,8 @@ func TestIsInsideData(t *testing.T) { } func TestExecDir(t *testing.T) { - const base = "/Library/Elastic/Agent" + base := filepath.Join(string(filepath.Separator), "Library", "Elastic", "Agent") + fmt.Println(base) tests := []struct { name string execDir string