Skip to content

Commit

Permalink
Fix temporary directory cleanup in core/operations
Browse files Browse the repository at this point in the history
Liberate the tempDir assignment so the cleanup runs with an initialized
value.

Change-Id: I9eeb42475fa7b7dc4f918801ef73ad1016b393c5
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
sykesm authored and Brett Logan committed Apr 15, 2020
1 parent 94a3ddc commit 2e380d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/operations/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var _ = Describe("System", func() {

BeforeEach(func() {
var err error
tempDir, err := ioutil.TempDir("", "opssys")
tempDir, err = ioutil.TempDir("", "opssys")
Expect(err).NotTo(HaveOccurred())

generateCertificates(tempDir)
Expand Down

0 comments on commit 2e380d5

Please sign in to comment.