open-nomad/client/driver/driver_test.go

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
}