From: Simon Ruderich Date: Wed, 26 Jun 2019 07:30:24 +0000 (+0200) Subject: nsscash: file_test: restore log output after the test X-Git-Tag: 0.1~41 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=ca6feacbb41a10530153355a5e75a8f58ab557a5;p=nsscash%2Fnsscash.git nsscash: file_test: restore log output after the test Otherwise this affects other test files as well. --- diff --git a/file_test.go b/file_test.go index f192d7a..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)