Tests only use testlog package logger

This commit is contained in:
Alex Dadgar
2018-06-13 15:33:25 -07:00
parent 3d3490fdf1
commit 98c7abe541
48 changed files with 273 additions and 324 deletions

View File

@@ -6,6 +6,7 @@ import (
"path/filepath"
"testing"
"github.com/hashicorp/nomad/helper/testlog"
"golang.org/x/sys/unix"
)
@@ -21,7 +22,7 @@ func TestLinuxSpecialDirs(t *testing.T) {
}
defer os.RemoveAll(allocDir)
td := newTaskDir(testLogger(), allocDir, "test")
td := newTaskDir(testlog.Logger(t), allocDir, "test")
// Despite the task dir not existing, unmountSpecialDirs should *not*
// return an error