Commit 4029824c authored by Sebastian Stark's avatar Sebastian Stark

silence logger during testing

parent e88c51fa
......@@ -4,6 +4,7 @@ package main
import (
"io/ioutil"
"log"
"os"
"path/filepath"
"testing"
......@@ -60,6 +61,7 @@ func mockRepository() {
}
func TestPrune(t *testing.T) {
log.SetOutput(ioutil.Discard)
mockConfig()
mockRepository()
defer os.RemoveAll(config.repository)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment