Skip to content

Commit

Permalink
Fix windows ovf spec
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Jul 20, 2024
1 parent 55bcce7 commit c0cd47a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package_stemcell/ovftool/ovftool_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ var _ = Describe("ovftool", func() {
It("fails when given invalid set of install paths", func() {
tmpDir := GinkgoT().TempDir() // automatically cleaned up

_, err = ovftool.Ovftool([]string{tmpDir})

_, err := ovftool.Ovftool([]string{tmpDir})
Expect(err).To(HaveOccurred())
})

Expand All @@ -105,9 +104,10 @@ var _ = Describe("ovftool", func() {
var tmpDir, dummyDir string

BeforeEach(func() {
tmpDir := GinkgoT().TempDir() // automatically cleaned up
dummyDir := GinkgoT().TempDir() // automatically cleaned up
err = os.WriteFile(filepath.Join(tmpDir, "ovftool.exe"), []byte{}, 0644)
tmpDir = GinkgoT().TempDir() // automatically cleaned up
dummyDir = GinkgoT().TempDir() // automatically cleaned up

err := os.WriteFile(filepath.Join(tmpDir, "ovftool.exe"), []byte{}, 0644)
Expect(err).ToNot(HaveOccurred())
})

Expand Down

0 comments on commit c0cd47a

Please sign in to comment.