Skip to content

Commit

Permalink
Fix windows incompatibility with /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
prietyc123 committed Jun 2, 2020
1 parent b85b76e commit 7af3147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/operatorhub/cmd_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var _ = Describe("odo service command tests for OperatorHub", func() {

// stdOut contains the yaml specification. Store it to a file
randomFileName := helper.RandString(6) + ".yaml"
fileName := filepath.Join("/tmp", randomFileName)
fileName := filepath.Join(os.TempDir(), randomFileName)
if err := ioutil.WriteFile(fileName, []byte(stdOut), 0644); err != nil {
fmt.Printf("Could not write yaml spec to file %s because of the error %v", fileName, err.Error())
}
Expand Down

0 comments on commit 7af3147

Please sign in to comment.