Skip to content

Commit

Permalink
Remove '*' from ioutil.TempFile pattern
Browse files Browse the repository at this point in the history
Seems like it's not actually replaced

[#160794441]
  • Loading branch information
andreasf committed Sep 27, 2018
1 parent d98c4e1 commit 6e95ba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cfmysql/mysql_runner.go
Expand Up @@ -100,7 +100,7 @@ func (self *mysqlRunner) storeCaCert(mysqlPath string, caCert string) ([]string,
return []string{}, "", nil
}

caCertFile, err := self.ioUtilWrapper.TempFile("", "mysql-ca-cert-*.pem")
caCertFile, err := self.ioUtilWrapper.TempFile("", "mysql-ca-cert.pem")
if err != nil {
return []string{}, "", fmt.Errorf("error creating temp file: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cfmysql/mysql_runner_test.go
Expand Up @@ -102,7 +102,7 @@ var _ = Describe("MysqlRunner", func() {

tempFileDir, tempFilePattern := ioutilWrapper.TempFileArgsForCall(0)
Expect(tempFileDir).To(Equal(""))
Expect(tempFilePattern).To(Equal("mysql-ca-cert-*.pem"))
Expect(tempFilePattern).To(Equal("mysql-ca-cert.pem"))

writeStringFile, writeStringString := osWrapper.WriteStringArgsForCall(0)
Expect(writeStringFile).To(BeIdenticalTo(tempFile))
Expand Down

0 comments on commit 6e95ba5

Please sign in to comment.