mirror of https://github.com/containers/podman.git
Merge pull request #25619 from l0rd/machine-cp-flake
Fix flake on machine cp e2e test
This commit is contained in:
commit
2b0aef554e
|
|
@ -43,13 +43,17 @@ var _ = Describe("podman machine cp", func() {
|
||||||
guestToHostDir = "guest-foo-dir"
|
guestToHostDir = "guest-foo-dir"
|
||||||
)
|
)
|
||||||
|
|
||||||
_, err := os.Create(filePath)
|
f, err := os.Create(filePath)
|
||||||
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
err = f.Close()
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
|
||||||
err = os.MkdirAll(directoryPath, 0755)
|
err = os.MkdirAll(directoryPath, 0755)
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
|
||||||
_, err = os.Create(fileInDirectoryPath)
|
f, err = os.Create(fileInDirectoryPath)
|
||||||
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
err = f.Close()
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
|
||||||
name := randomString()
|
name := randomString()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue