Skip to content

Commit

Permalink
Fix test for any platform filepath separator
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksmaus committed Oct 3, 2022
1 parent 7f35077 commit 2f375f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/agent/application/paths/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f375f3

Please sign in to comment.