diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-29 18:15:45 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-09-29 18:15:45 +0200 |
commit | e78a65ca04492488fe68364e90c24615cdb39ff6 (patch) | |
tree | 5ad290b7b15cb265bc712ef2033eea81a2edc863 | |
parent | 70a64db6bca2aaa5cfee4d50d582d575be21d5fe (diff) | |
download | dna-backup-e78a65ca04492488fe68364e90c24615cdb39ff6.tar.gz dna-backup-e78a65ca04492488fe68364e90c24615cdb39ff6.zip |
echo actual logger output in symlink test
-rw-r--r-- | repo_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/repo_test.go b/repo_test.go index 63a1184..82e8558 100644 --- a/repo_test.go +++ b/repo_test.go @@ -174,7 +174,8 @@ func TestReadFiles3(t *testing.T) { func TestSymlinks(t *testing.T) { var output bytes.Buffer - logger.SetOutput(&output) + multi := io.MultiWriter(&output, os.Stderr) + logger.SetOutput(multi) defer logger.SetOutput(os.Stderr) tmpDir := t.TempDir() extDir := t.TempDir() |