hugolib: Test cleaning #1

This commit is contained in:
Bjørn Erik Pedersen
2018-03-16 18:27:44 +01:00
parent af67ad8af1
commit debd3663dd
6 changed files with 479 additions and 585 deletions

View File

@@ -19,12 +19,7 @@ import (
"strings"
"testing"
"io/ioutil"
"log"
"os"
"github.com/gohugoio/hugo/deps"
jww "github.com/spf13/jwalterweatherman"
"fmt"
"runtime"
@@ -327,7 +322,7 @@ func doTestDataDirImpl(t *testing.T, dd dataDir, expected interface{}, configKey
}
var (
logger = jww.NewNotepad(jww.LevelWarn, jww.LevelWarn, os.Stdout, ioutil.Discard, t.Name(), log.Ldate|log.Ltime)
logger = newErrorLogger()
depsCfg = deps.DepsCfg{Fs: fs, Cfg: cfg, Logger: logger}
)