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 May 27, 2020
1 parent da2b779 commit 461c519
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 @@ -92,7 +92,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 461c519

Please sign in to comment.