File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ func TestUploadDocument(t *testing.T) {
39
39
OwnerUserId : 1 ,
40
40
}, nil ).Times (1 )
41
41
42
- expected , _ := ioutil .TempFile (os .TempDir (), "file " )
43
- defer os .Remove (expected .Name ())
42
+ temp , _ := ioutil .TempFile (os .TempDir (), "expected " )
43
+ defer os .Remove (temp .Name ())
44
44
45
45
mockDockerFileSystemRepo := repMocks .NewMockIUnpublishedVolumeRepository (controller )
46
- mockDockerFileSystemRepo .EXPECT ().GetFromVolume (entityID .String ()).Return (expected , nil ).Times (1 )
46
+ mockDockerFileSystemRepo .EXPECT ().GetFromVolume (entityID .String ()).Return (temp , nil ).Times (1 )
47
47
48
48
mockDepFactory := createMockDependencyFactory (controller , mockFileRepo , true )
49
49
mockDepFactory .EXPECT ().GetUnpublishedVolumeRepo ().Return (mockDockerFileSystemRepo )
@@ -63,7 +63,7 @@ func TestUploadDocument(t *testing.T) {
63
63
})
64
64
65
65
// check that the file was written to the docker volume
66
- actual , _ := ioutil .ReadFile (expected .Name ())
66
+ actual , _ := ioutil .ReadFile (temp .Name ())
67
67
assert .Equal (actual , []byte (fileContent ))
68
68
69
69
}
You can’t perform that action at this time.
0 commit comments