diff --git a/nomad/mock/mock.go b/nomad/mock/mock.go index c0228505fac..7de4987a25b 100644 --- a/nomad/mock/mock.go +++ b/nomad/mock/mock.go @@ -46,7 +46,6 @@ func Node() *structs.Node { }, }, }, - Drivers: make(map[string]*structs.DriverInfo), Links: map[string]string{ "consul": "foobar.dc1", }, diff --git a/scheduler/feasible_test.go b/scheduler/feasible_test.go index 54830726300..224436efceb 100644 --- a/scheduler/feasible_test.go +++ b/scheduler/feasible_test.go @@ -133,6 +133,9 @@ func TestDriverChecker_HealthChecks(t *testing.T) { mock.Node(), mock.Node(), } + for _, e := range nodes { + e.Drivers = make(map[string]*structs.DriverInfo) + } nodes[0].Attributes["driver.foo"] = "1" nodes[0].Drivers["foo"] = &structs.DriverInfo{ Detected: true,