open-nomad/client/driver/driver_test.go

23 lines
361 B
Go
Raw Normal View History

2015-09-01 21:56:42 +00:00
package driver
import (
"log"
"os"
"github.com/hashicorp/nomad/client/config"
2015-09-01 21:56:42 +00:00
)
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
}