]> ruderich.org/simon Gitweb - nsscash/nsscash.git/commitdiff
nsscash: file_test: restore log output after the test
authorSimon Ruderich <simon@ruderich.org>
Wed, 26 Jun 2019 07:30:24 +0000 (09:30 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 26 Jun 2019 07:30:24 +0000 (09:30 +0200)
Otherwise this affects other test files as well.

file_test.go

index f192d7af981a88eedaba9daa79b963c4ac795b5d..72fa58c5f9ea6178afe43f1e421d506ccb3aede7 100644 (file)
@@ -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)