X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=file_test.go;h=9b3ba0db48b7e18e848de7dee7d32e9eae48fb63;hb=278c50be3d8a8c433aa862d602492112b9f26a67;hp=59cb169f8abf66f51cbb7b30a178d6bfbe14a096;hpb=348c8b83453aabeda5fb8acccb23244621a057d6;p=nsscash%2Fnsscash.git diff --git a/file_test.go b/file_test.go index 59cb169..9b3ba0d 100644 --- a/file_test.go +++ b/file_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2019 Simon Ruderich +// Copyright (C) 2019-2021 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by @@ -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,