File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 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) {
3939 OwnerUserId : 1 ,
4040 }, nil ).Times (1 )
4141
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 ())
4444
4545 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 )
4747
4848 mockDepFactory := createMockDependencyFactory (controller , mockFileRepo , true )
4949 mockDepFactory .EXPECT ().GetUnpublishedVolumeRepo ().Return (mockDockerFileSystemRepo )
@@ -63,7 +63,7 @@ func TestUploadDocument(t *testing.T) {
6363 })
6464
6565 // check that the file was written to the docker volume
66- actual , _ := ioutil .ReadFile (expected .Name ())
66+ actual , _ := ioutil .ReadFile (temp .Name ())
6767 assert .Equal (actual , []byte (fileContent ))
6868
6969}
You can’t perform that action at this time.
0 commit comments