Skip to content

Commit

Permalink
hugolib: Test cleaning #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Mar 17, 2018
1 parent af67ad8 commit debd366
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 495 deletions.
7 changes: 1 addition & 6 deletions hugolib/datafiles_test.go
Expand Up @@ -19,12 +19,7 @@ import (
"strings"
"testing"

"io/ioutil"
"log"
"os"

"github.com/gohugoio/hugo/deps"
jww "github.com/spf13/jwalterweatherman"

"fmt"
"runtime"
Expand Down Expand Up @@ -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}
)

Expand Down

0 comments on commit debd366

Please sign in to comment.