open-nomad/client/driver/driver_test.go
2015-09-09 18:38:52 -07:00

23 lines
361 B
Go

package driver
import (
"log"
"os"
"github.com/hashicorp/nomad/client/config"
)
func testLogger() *log.Logger {
return log.New(os.Stderr, "", log.LstdFlags)
}
func testConfig() *config.Config {
return &config.Config{}
}
func testDriverContext() *DriverContext {
cfg := testConfig()
ctx := NewDriverContext(cfg, cfg.Node, testLogger())
return ctx
}