X-Git-Url: https://ruderich.org/simon/gitweb/?p=nsscash%2Fnsscash.git;a=blobdiff_plain;f=file_test.go;h=72fa58c5f9ea6178afe43f1e421d506ccb3aede7;hp=59cb169f8abf66f51cbb7b30a178d6bfbe14a096;hb=0cc987b1bcb7b16da4f46d84d216df3f6ef457e1;hpb=348c8b83453aabeda5fb8acccb23244621a057d6 diff --git a/file_test.go b/file_test.go index 59cb169..72fa58c 100644 --- a/file_test.go +++ b/file_test.go @@ -27,6 +27,7 @@ func TestDeployFile(t *testing.T) { // Suppress log messages log.SetOutput(ioutil.Discard) + defer log.SetOutput(os.Stderr) // Setup & cleanup f, err := os.Create(deploy) @@ -45,7 +46,7 @@ func TestDeployFile(t *testing.T) { }{ { 0644, - 0644, + 0444, }, { 0400, @@ -53,15 +54,15 @@ func TestDeployFile(t *testing.T) { }, { 0600, - 0600, + 0400, }, { 0777, - 0777, + 0555, }, { 0666, - 0666, + 0444, }, { 0000,