@@ -46,30 +46,30 @@ func TestSanitize(t *testing.T) {
4646
4747func TestMoveFile (t * testing.T ) {
4848 // Make temporary cache directory
49- if err := os .Mkdir ("/tmp/test-cache " , 0755 ); err != nil && ! os .IsExist (err ) {
49+ if err := os .Mkdir ("/tmp/test-move " , 0755 ); err != nil && ! os .IsExist (err ) {
5050 t .Error (err )
5151 }
5252
5353 inputString := "Test File"
5454
5555 //nolint:golint,gosec
56- assert .Nil (t , os .WriteFile ("/tmp/test-cache /source.txt" , []byte (inputString ), 0644 ))
56+ assert .Nil (t , os .WriteFile ("/tmp/test-move /source.txt" , []byte (inputString ), 0644 ))
5757
58- assert .Nil (t , MoveFile ("/tmp/test-cache /source.txt" , "/tmp/test-cache /dest.txt" ))
58+ assert .Nil (t , MoveFile ("/tmp/test-move /source.txt" , "/tmp/test-move /dest.txt" ))
5959
60- if _ , err := os .Stat ("/tmp/test-cache /dest.txt" ); os .IsNotExist (err ) {
60+ if _ , err := os .Stat ("/tmp/test-move /dest.txt" ); os .IsNotExist (err ) {
6161 t .Errorf ("file text-cache/dest.txt doesn't exist but should" )
6262 }
6363
64- if _ , err := os .Stat ("/tmp/test-cache /source.txt" ); err == nil {
64+ if _ , err := os .Stat ("/tmp/test-move /source.txt" ); err == nil {
6565 t .Errorf ("file text-cache/source.txt exists but shouldn't" )
6666 }
6767
68- contents , err := os .ReadFile ("/tmp/test-cache /dest.txt" )
68+ contents , err := os .ReadFile ("/tmp/test-move /dest.txt" )
6969 assert .Nil (t , err )
7070 assert .Equal (t , inputString , string (contents ))
7171
72- assert .Nil (t , os .Remove ("/tmp/test-cache /dest.txt" ))
72+ assert .Nil (t , os .Remove ("/tmp/test-move /dest.txt" ))
7373}
7474
7575func TestPrintTable (t * testing.T ) {
0 commit comments