move test logger to shared file

This commit is contained in:
Clint Shryock
2015-09-01 16:56:42 -05:00
parent 8df78d2521
commit e7c88f1bcf
2 changed files with 10 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
package driver
import (
"log"
"os"
)
func testLogger() *log.Logger {
return log.New(os.Stderr, "", log.LstdFlags)
}

View File

@@ -1,8 +1,6 @@
package driver
import (
"log"
"os"
"testing"
"time"
@@ -10,10 +8,6 @@ import (
"github.com/hashicorp/nomad/nomad/structs"
)
func testLogger() *log.Logger {
return log.New(os.Stderr, "", log.LstdFlags)
}
func TestExecDriver_Fingerprint(t *testing.T) {
d := NewExecDriver(testLogger())
node := &structs.Node{