File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ var _ = Describe("AppFiles", func() {
108
108
109
109
Describe ("CopyFiles" , func () {
110
110
It ("copies only the files specified" , func () {
111
- copyDir := filepath .Join (fixturePath , "app-copy-test" )
111
+ copyDir , err := filepath .Abs (filepath .Join (fixturePath , "app-copy-test" ))
112
+ Expect (err ).NotTo (HaveOccurred ())
112
113
113
114
filesToCopy := []models.AppFileFields {
114
115
{Path : filepath .Join ("dir1" )},
@@ -117,7 +118,8 @@ var _ = Describe("AppFiles", func() {
117
118
118
119
files := []string {}
119
120
120
- fileutils .TempDir ("copyToDir" , func (tmpDir string , err error ) {
121
+ fileutils .TempDir ("copyToDir" , func (tmpDir string , tmpErr error ) {
122
+ Expect (tmpErr ).NotTo (HaveOccurred ())
121
123
copyErr := appFiles .CopyFiles (filesToCopy , copyDir , tmpDir )
122
124
Expect (copyErr ).ToNot (HaveOccurred ())
123
125
You can’t perform that action at this time.
0 commit comments