mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
move test logger to shared file
This commit is contained in:
10
client/driver/driver_test.go
Normal file
10
client/driver/driver_test.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package driver
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
func testLogger() *log.Logger {
|
||||
return log.New(os.Stderr, "", log.LstdFlags)
|
||||
}
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user